Skip to content
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

webpack setup .babelrc.js probably used useBuiltIns wrongly #909

Closed
3cp opened this issue Jul 29, 2018 · 0 comments
Closed

webpack setup .babelrc.js probably used useBuiltIns wrongly #909

3cp opened this issue Jul 29, 2018 · 0 comments

Comments

@3cp
Copy link
Member

3cp commented Jul 29, 2018

Current webpack .babelrc.js set userBuiltIns to true

module.exports = () => {
  return {
    // ...
    "presets": [
      [
        "env", {
          // ...
          "useBuiltIns": true
        }
      ]
    ]
  }
}

But preset-env's useBuitIns only has three options: "usage", "entry", or false.

babel/babel#6830
https://babeljs.io/docs/en/next/babel-preset-env.html#usebuiltins

I suspect the current "useBuiltIns": true has same effect as "useBuiltIns": false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant