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
When wrapping the dynamic import, exporting the function directly and building for CommonJS, the built artifact will contain a var _a outside of the function's scope which will cause issues when importing in "parallel", for example with Promise.all.
🔎 Search Terms
dynamic import, import, hoist, outside scope, var _a
Bug Report
When wrapping the dynamic
import
, exporting the function directly and building for CommonJS, the built artifact will contain avar _a
outside of the function's scope which will cause issues when importing in "parallel", for example withPromise.all
.🔎 Search Terms
dynamic import, import, hoist, outside scope,
var _a
🕗 Version & Regression Information
4.9.0-dev.20221019
introduced with fix: avoid downleveled dynamic import closing over specifier expression #49663⏯ Playground and reproduction link
💻 Code
The transpiled code will have problems with parallelism, running the following:
will raise an error: "Cannot find module 'idontexist-2'" while importing idontexist-1.
🙁 Actual behavior
🙂 Expected behavior
The text was updated successfully, but these errors were encountered: