Evan Wallace
Evan Wallace
But by that argument, esbuild shouldn't respect [`paths`](https://www.typescriptlang.org/tsconfig#paths) either, since that's also a path transformation that `tsc` doesn't apply. However, esbuild does currently apply `paths` mappings from `tsconfig.json` files, and...
You can use `logLevel: 'verbose'` to tell esbuild to print out all details about path resolution. That might help you figure out why `getTimezoneOffsetInMilliseconds/index.js` is not being included in the...
The code for this is here: https://github.com/evanw/esbuild/blob/f730c03dc7be43c3c908fbd6e106120a99ebb4a0/internal/js_ast/js_ast_helpers.go#L840-L878 Code folding for loose comparisons hasn't been implemented yet. Unlike JavaScript minifiers written in JavaScript, doing this in Go is non-trivial because you...
The CLI just calls the public API like you are doing, and then pretty-prints the returned address and port: https://github.com/evanw/esbuild/blob/f730c03dc7be43c3c908fbd6e106120a99ebb4a0/pkg/cli/cli_impl.go#L1320-L1355 You are welcome to print it yourself if you'd like,...
Why would that be a better thing to do than automatically-computed chunks? I'm sure there are reasons, I just want to make sure I know why you would want to...
If this is about caching, then should this disable tree shaking? Otherwise when tree shaking is active, the size of even manually-specified chunks can grow and shrink between builds. Also...
I could see supporting `external`, but `linked` is supposed to have the JavaScript reference the generated output file name and the transform API has no output files. Implementing `linked` is...
You're right, I should prevent entry files from being marked as external. I will do that in a future release.
There is unfortunately no way to turn strict mode off in JavaScript (by design), which I think means it's impossible for esbuild to honor `use strict` accurately when bundling. This...
## Part 1 I haven't looked into exactly why this happens yet, but this is likely a known limitation of esbuild's class transform. See #1328 for a prior discussion about...