Last 12 weeks · 0 commits
2 of 6 standards met
Hi, I've got a strange client (browser) side issue while trying out @jycouet 'firstly' lib. The code-red module is complaining about a missing import/export from @jridgewell/sourcemap-codec: but it is definitely there: !image I don't think it's a problem with but with some issue of the pnpm-vite-svelte build process of the lib or how the package install is handled on my site, but I'd like to have a clue about whats going on. Is there any idea? Cheers
Repository: Rich-Harris/code-red. Description: Experimental toolkit for writing x-to-JavaScript compilers Stars: 335, Forks: 22. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 0, open issues: 4. Last activity: 2y ago. Community health: 42%. Top contributors: Rich-Harris, Conduitry, tanhauhau, benmccann, kindoflew, swyxio, arthurdenner, jasonlyu123, milahu, sahilmob and others.
Some CDN and bundlers dose a bad job at figuring out if Buffer is optional and always import buffer just in case. even if you are not using it... https://github.com/Rich-Harris/code-red/blob/6e2a690e4303700de88abc7e6a5b75c318f9108d/src/print/index.js#L12-L16 I would prefer it if you tried to get rid of buffer and instead just used atob/btoa that's globally available in all env today. but it would require setting engine.node >= 16 in your package json
closes #81