You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ esbuild --bundle --target=es2022 test.ts >test.js
$ node test.js
/private/tmp/decorator-issue/test.js:60
__decorateElement(_init, 1, "baz", _baz_dec, _Baz);
^
ReferenceError: _Baz is not defined
at /private/tmp/decorator-issue/test.js:60:48
at Object.<anonymous> (/private/tmp/decorator-issue/test.js:62:3)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.12.2
With esbuild 0.21.2, given the following file
transforming without the
--bundle
flag works:Specifying the
--bundle
flag fails:Here is a repro on esbuild.github.io/try.
The text was updated successfully, but these errors were encountered: