-
Notifications
You must be signed in to change notification settings - Fork 507
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
Error when using generator functions #547
Comments
This comment has been minimized.
This comment has been minimized.
@agilgur5 I've tried this, no luck. just add |
This comment has been minimized.
This comment has been minimized.
I didn't realize this was supposed to be supported. Here is my babel config I've also been using as a work around. https://github.com/devanfarrell/redux-dogma/blob/master/.babelrc |
@agilgur5 when using |
@devanfarrell this may work but it seems not an extensible way since it replace the internal config. |
This comment has been minimized.
This comment has been minimized.
So I added an integration test for this in #627 and that made it easier to investigate this.
// .babelrc.js
module.exports = {
plugins: [
['@babel/plugin-transform-runtime', { helpers: false }]
]
} I believe this works the same as The other option would be to use In theory, you might be able to override the exclusion with: // .babelrc.js
module.exports = {
presets: [
['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3, excludes: ['', ''] }],
],
} but I'm not sure that'll work. Closing this issue since there is a way to do it/workaround available. EDIT: also this seems to be a duplicate of #169 so marking it as such |
Automatic pure polyfilling of generators with |
because of a runtime error in vscode, presented only with the packaged extension jaredpalmer/tsdx#547
because of a runtime error in vscode, presented only with the packaged extension jaredpalmer/tsdx#547
because of a runtime error in vscode, presented only with the packaged extension jaredpalmer/tsdx#547
Current Behavior
after add some code with generator, it generates some code which lead to
I tried to solve it with microsoft/TypeScript-Babel-Starter#26 (comment), but it gave me other error:
Your environment
The text was updated successfully, but these errors were encountered: