Evan Wallace
Evan Wallace
> @evanw do you think this might offer a viable path forward for introducing 'arbitrary' code split boundaries? It seems similar to two existing features in esbuild. One of those...
I'm planning on releasing a form of this sometime soon. You can see my work in progress version here: #2508. This will initially require code splitting to be enabled (as...
> Since we are using the `URL` constructor, is this really mandatory? Isn't `new URL('foo.bar', import.meta.url)` equivalent to `new URL('./foo.bar', import.meta.url)`? Two reasons why I was thinking explicitly relative could...
I just investigated what Webpack/Parcel/Rollup do for this feature: * Parcel: Using `new URL()` with a `.js` file bundles the `.js` file. This is what I was thinking of doing....
Plain `new URL()`. I'm not yet sold on hard-coding `new Worker()` recognition. In addition to it not being general-purpose, there are some scenarios where you want a bundled JS file...
> couldn't the same be said for `new URL()`? I.e. what if one wants the browser to execute the call and not have the bundler interpit it? It’s the same...
This is what the `--tsconfig=` setting is for. You can use that to override the default one with one of your choosing: https://esbuild.github.io/api/#tsconfig
It's used like this: ``` echo "{}" > empty-tsconfig.json esbuild --bundle --tsconfig=empty-tsconfig.json ```
Thanks for the detailed report. I don’t have time to look into this at the moment, sorry (I have an upcoming cross-country move in a few weeks). I hope to...
https://esbuild.github.io/api/#write