Evan Wallace

Results 542 comments of Evan Wallace

The behavior you are complaining about is an expected part of how ES modules work in JavaScript. For example: ```console $ node --input-type=module -e 'import * as fs from "fs";...

"Yet" is there both because at the time the [issue regarding ES5 support](https://github.com/evanw/esbuild/issues/297) hadn't been closed yet, and because it's something that esbuild might hypothetically still support in the future....

Code splitting is still a work in progress, and doesn't fully work yet (as you are aware, since you linked to #399 and other issues). I'm mainly prioritizing work on...

I can do this but making the port nullable in the Go API is a breaking change, so it'll have to wait until a breaking change release to do it....

As far as I know the execution order of imported ECMAScript modules is undefined (see also [this question](https://stackoverflow.com/questions/35551366)). The run-time is free to, for example, asynchronously download all imports in...

Thanks for the additional detail. I have personally struggled to find information about how this works, and that Stack Overflow question was pretty much the only reference I could find...

I'm in the middle of working on another iteration of the code splitting feature and I just discovered what could be considered another ordering bug. Currently `/* @__PURE__ */` comments...

I just discovered that I think Rollup also has similar ordering bugs with code splitting. Here is an example ([link](http://rollupjs.org/repl/?version=2.34.0&shareable=JTdCJTIybW9kdWxlcyUyMiUzQSU1QiU3QiUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCcuJTJGbGliMiclNUNuaW1wb3J0JTIwJy4lMkZsaWIxJyU1Q25pZiUyMCh3aW5kb3cubGliJTIwISUzRCUzRCUyMCdsaWIxJyklMjB0aHJvdyUyMCdmYWlsJyUyMiUyQyUyMmlzRW50cnklMjIlM0F0cnVlJTdEJTJDJTdCJTIybmFtZSUyMiUzQSUyMm1haW4yLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCcuJTJGbGliMSclNUNuaW1wb3J0JTIwJy4lMkZsaWIyJyU1Q25pZiUyMCh3aW5kb3cubGliJTIwISUzRCUzRCUyMCdsaWIyJyklMjB0aHJvdyUyMCdmYWlsJyUyMiUyQyUyMmlzRW50cnklMjIlM0F0cnVlJTdEJTJDJTdCJTIybmFtZSUyMiUzQSUyMmxpYjEuanMlMjIlMkMlMjJjb2RlJTIyJTNBJTIyd2luZG93LmxpYiUyMCUzRCUyMCdsaWIxJyUyMiUyQyUyMmlzRW50cnklMjIlM0FmYWxzZSU3RCUyQyU3QiUyMm5hbWUlMjIlM0ElMjJsaWIyLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMndpbmRvdy5saWIlMjAlM0QlMjAnbGliMiclMjIlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTIyZm9ybWF0JTIyJTNBJTIyZXMlMjIlMkMlMjJuYW1lJTIyJTNBJTIybXlCdW5kbGUlMjIlMkMlMjJhbWQlMjIlM0ElN0IlMjJpZCUyMiUzQSUyMiUyMiU3RCUyQyUyMmdsb2JhbHMlMjIlM0ElN0IlN0QlN0QlMkMlMjJleGFtcGxlJTIyJTNBbnVsbCU3RA==)): ```js // main.js import './lib2' import './lib1' if (window.lib !==...

I'm deep in the middle of working on this at the moment. I just discovered an issue with my approach. It's a problem similar to the one I discovered in...

> @evanw if this were updated, would it be accepted? (Asking based on this comment https://github.com/evanw/esbuild/issues/192#issuecomment-650604222) Not right now. That comment is still accurate. And in addition to that comment,...