-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spack: Wrong import from regenerator-runtime
#2789
Comments
You should install regenerator-runtime |
Thanks, after the installation, the bundling worked fine. But the code still cannot execute, with the following error:
The output code: // ......
// above are the code of regenerator-runtime
var { default: regeneratorRuntime1 } = load();
var _marked = regeneratorRuntime1.mark(test); // throws here
function test() {
return regeneratorRuntime1.wrap(function test$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
_ctx.next = 2;
return 1;
case 2:
_ctx.next = 4;
return 2;
case 4:
case "end":
return _ctx.stop();
}
}, _marked);
} |
Seems like |
regenerator-runtime
swc_bundler: - Update helpers to use interop for common js deps. (Closes #2789)
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
When I bundle code with generators,
spack
always failed with the following output:swc
works well though.Env
OS: macOS 10.12.1
node: v15.0.1
@swc/core: v1.2.107
Input code
Config
no .swcrc
Playground link
No response
Expected behavior
Compile the code and bundle it without errors.
Version
1.2.107
Additional context
No response
The text was updated successfully, but these errors were encountered: