Evan Wallace
Evan Wallace
I recommend using a global reference instead of a local identifier: ```js const createAPI = (injectedValues) => { // ... } const myValue = MY_VALUE; createAPI(myValue); ``` Global references are...
To invoke something from `main()`, you'd put the call to it in the body of the function called `main`: ```cpp extern "C" { void runSomeJS(); } int main(int argc, char...
You are welcome to bundle things and then not use the resulting bundle (and not write the bundle to the file system, with `write: false`). But bundling is required for...
I'm reopening this as I agree that this warning shouldn't trigger for `default` like this in my opinion. I missed this case due to an oversight. I'm not sure how...
> I'm also seeing this warning for several of my projects that are set up like this: > > ```js > "exports": { > "import": "./thing.mjs", > "require": "./thing.cjs", >...
I'm closing this issue as this seems like expected behavior. As described in the release notes, getting the old decorator behavior from version 0.17.19 now requires `"experimentalDecorators": true` with version...
What esbuild does is the same as [what TypeScript does](https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgWQgEwK4BsCmARHAM2ADsc4BfOQqCEOAcgDoB6VTXA4shgbgCh+OAB6RYcHCQz122HAEEAwhBIBneAn5xtcZWpgBGOAF4U6OV1I4mAIQCGq8gGozHfEStNZueXABUrhYeZEwA8oSEjjAANFo6euoATLE6uirqAMz8FEA) when asked to compile that code as an isolated module: ```js import { ModuleDefine } from './ModuleDefine'; export var ModuleAConst;...
I can see the difference in output (e.g. [this](https://esbuild.github.io/try/#dAAwLjIzLjAALS1sb2FkZXI9dHMgLS1taW5pZnkAaW1wb3J0IHsKICBpc1BsYWluT2JqZWN0LAp9IGZyb20gJ3JhZGFzaGknCgpleHBvcnQgZnVuY3Rpb24gZm9vKGFyZzogb2JqZWN0IHwgTnVtYmVyIHwgU3RyaW5nKSB7CiAgcmV0dXJuIGlzUGxhaW5PYmplY3QoYXJnKSA/ICdvYmplY3QnIDogJ3ByaW1pdGl2ZScKfQ) vs. [this](https://esbuild.github.io/try/#dAAwLjIzLjAALS1sb2FkZXI9dHMgLS1taW5pZnkAaW1wb3J0IHsKICBpc1BsYWluT2JqZWN0LAogIHR5cGUgQm94ZWRQcmltaXRpdmUsCn0gZnJvbSAncmFkYXNoaScKCmV4cG9ydCBmdW5jdGlvbiBmb28oYXJnOiBvYmplY3QgfCBCb3hlZFByaW1pdGl2ZTxudW1iZXIgfCBzdHJpbmc+KSB7CiAgcmV0dXJuIGlzUGxhaW5PYmplY3QoYXJnKSA/ICdvYmplY3QnIDogJ3ByaW1pdGl2ZScKfQ)). But this doesn't seem to be a bug. The two results are functionally equivalent so this doesn't indicate a...
I'm closing this as I don't consider this to be a correctness issue. The minifier uses heuristics that attempt to generate minified names that compress better with gzip enabled by...
I'm closing this as this sounds like it's out of scope. Some packages aren't bundler-friendly, and it's not esbuild's responsibility to try to bundle them anyway. Potential solutions are to...