We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatic API (babel.transform, babel.parse)
babel.transform
babel.parse
import * as a from "mod"; import * as b from "mod"; later(() => [a, b])
No response
const out = transformSync(input, { configFile: false, plugins: [[await load(`transform-modules-commonjs`), { lazy: true }]], });
Current:
"use strict"; function a() { const data = _interopRequireWildcard(require("mod")); a = function () { return data; }; return data; } var b = a(); function _getRequireWildcardCache(nodeInterop) { ... } later(() => [a(), b()]);
Expected (note the b declaration):
b
"use strict"; function a() { const data = _interopRequireWildcard(require("mod")); a = function () { return data; }; return data; } var b = a; function _getRequireWildcardCache(nodeInterop) { ... } later(() => [a(), b()]);
Current main
The text was updated successfully, but these errors were encountered:
Still happens with #15878, also with import defer.
import defer
This bug blocks #15878 and #15898.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
Current and expected behavior
Current:
Expected (note the
b
declaration):Environment
Current main
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: