hyrious

Results 217 comments of hyrious

I thought the [`esbuild-dev`](https://www.npmjs.com/package/esbuild-dev) you installed is not mine. Mine is [`@hyrious/esbuild-dev`](https://www.npmjs.com/package/@hyrious/esbuild-dev). You can post the issue [there](https://github.com/gadget-inc/esbuild-dev).

About the tsconfig support, It will be really a lot of code to implement it in plain js because it could contains `extends` and comments and trailing comma. People have...

Reading [ts-node](https://github.com/TypeStrong/ts-node#node-flags), it seems node options can be passed via `NODE_OPTIONS=` env.

[Preview Link](https://hyrious.me/esbuild-repl/?version=0.14.21&mode=build&modules=%5B%5B%22main.js%22%2C%22import+%7B+a+%7D+from+%27.%2Fb%27%5Cnconsole.log%28a%29%22%2C1%5D%2C%5B%22b.js%22%2C%22var+exports+%3D+%7B%7D%2C+module+%3D+%7Bexports%7D%5Cn%7B+exports.a+%3D+1+%7D%5Cnexport+default+module.exports%5Cnexport+var+a+%3D+module.exports.a%22%2C0%5D%5D&buildOptions=%7B%22bundle%22%3Atrue%2C%22format%22%3A%22esm%22%2C%22splitting%22%3Atrue%7D) if the proposal of this issue come true.

🚢 0.2.0 I'll keep this issue open if there be any improvements to the conversion or strong reasons to remove this feature.

First of all, esbuild is not a transpiler like swc or babel at the first place, it is a bundler and it can already make sure multiple chunks could refer...

Did you mean CSS modules (#20)? Below is a quick search of `esbuild css modules plugin`: https://github.com/koluch/esbuild-plugin-css-modules You can find the way to turn a css file into 2 files...

In addition to the workaround above: esbuild actually will print a warning when converting `require` to esm format ([see it live](https://hyrious.me/esbuild-repl/?version=0.14.11&shareable=JTdCJTIyY29kZSUyMiUzQSUyMnJlcXVpcmUoJ2EnKSUyMiUyQyUyMmNvbmZpZyUyMiUzQSU3QiUyMmZvcm1hdCUyMiUzQSUyMmVzbSUyMiU3RCU3RA%3D%3D)) like: ``` â–² [WARNING] Converting "require" to "esm" is...

It is more incorrect to transform a require to dynamic import than bare import because then you have to mark all related functions async, which we called [function color](https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/). The...

[Reproduction Link](https://hyrious.me/esbuild-repl/?version=0.14.50&mode=build&modules=%5B%5B%22main.js%22%2C%22export+class+Test+%7B%5Cn++static+bar+%3D+1%3B%5Cn++%23foo+%3D+5%3B%5Cn%7D%22%2C1%5D%5D&buildOptions=%7B%22bundle%22%3Atrue%2C%22target%22%3A%22esnext%22%7D), it only occurs when `bundle: true`.