hyrious
hyrious
First of all, unbundled mode (#708) is not supported now. Your usage is not what esbuild designed for (transform files to cjs then run them). esbuild at the first place...
Chaining plugins is technically possible but hard in esbuild, plugins work in this order: ```js import "x" plugin.onResolve("x") => "/path/to/x" (absolute path) plugin.onLoad("/path/to/x") => "file contents" ``` If one of...
Yes, `getter` and `setter` are treated not PURE in esbuild since they can have side effects. You can instead write your function like this: ```js var notIncluded = /* @__PURE__...
Yes, but in fact esbuild is adopting a very simple rule on tree shaking, every code that can be shaked in esbuild can also be shaked in other bundlers (note...
Yeah maybe it's worth for smaller package size. However that will introduce many code to analyse whether some variable is pure, which will slow down the bundling speed. Consider this...
This is actually some sort of @rollup/plugin-commonjs does. But that's not trivial, changing the import method will result in choosing different files according to the `exports` field in package.json. While...
Current implementation of bundling TLA is still not matching the un-bundled code. I re-thinked how code runs, and find out there maybe no way to keep doing scope hoisting on...
@tenjaa use target: node14.14 or higher version.
能否提供一个复现的网页?
没收到( 不过我做了一个 [demo](https://gist.github.com/hyrious/1f3ad0b3c9ff470db7079d28f44dae55),可以看到已经生效了。