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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure what was the reason behind using @babel/plugin-proposal-object-rest-spread; spread seem to be transpiled even without the extra plugin.
Also, exclude: ['transform-typeof-symbol'] does not seem to apply in our codebase.
exclude: ['transform-typeof-symbol']
Any hints welcome.
The text was updated successfully, but these errors were encountered:
@babel/plugin-proposal-object-rest-spread
This is now enabled by default because it's a part of ES2018.
Archive syntax plugins enabled by default babel/babel#10820
@babel/plugin-transform-typeof-symbol
This does nothing if loose: true in the @babel/preset-env options:
loose: true
@babel/preset-env
[preset-env] Exclude transform-typeof-symbol with loose option. babel/babel#6831
loose
Sorry, something went wrong.
Thanks for the reply!
It doesn't seem that the transpiled spread code is 100% the same though. It seems without @babel/plugin-proposal-object-rest-spread in plugins, babel is extending Object.assign. https://babeljs.io/docs/en/babel-plugin-proposal-object-rest-spread#loose
Not sure if there is any issue.
EDIT: here's what seems to be identical to what we have
module.exports = { presets: [ [ '@babel/preset-env', { loose: true, modules: false } ] ], plugins: [ '@babel/plugin-proposal-object-rest-spread' ] }
Successfully merging a pull request may close this issue.
Not sure what was the reason behind using @babel/plugin-proposal-object-rest-spread; spread seem to be transpiled even without the extra plugin.
Also,
exclude: ['transform-typeof-symbol']
does not seem to apply in our codebase.Any hints welcome.
The text was updated successfully, but these errors were encountered: