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

Allow setting useBuiltIns to be false. #843

Merged
merged 1 commit into from
Feb 16, 2018
Merged

Allow setting useBuiltIns to be false. #843

merged 1 commit into from
Feb 16, 2018

Conversation

zigomir
Copy link
Contributor

@zigomir zigomir commented Feb 16, 2018

Because if you set useBuiltIns to false we'll always fallback to 'usage'.

@yyx990803 yyx990803 merged commit a9ac1a9 into vuejs:dev Feb 16, 2018
@zigomir zigomir deleted the dev branch February 16, 2018 03:38
@LinusBorg
Copy link
Member

LinusBorg commented Apr 11, 2018

@zigomir @yyx990803 Where do I set this option? It's not in the schema for vue.config.js as "3rd-party" pluginOptions for babel-preset-app?

That doesn't seem to work...

// vue.config.js
module.exports =  @{
  pluginOptions: {
    'babel-preset-app': {
      useBuiltIns: 'entry',
    },
  },
}

result:

 When setting `useBuiltIns: 'usage'`, polyfills are automatically imported when needed.
  Please remove the `import '@babel/polyfill'` call or use `useBuiltIns: 'entry'` instead.

Edit: I'm stupid, ignore me:

// babelrc
[
  "@vue/app",
  {
    "useBuiltIns": "entry"
  }
]

@zigomir
Copy link
Contributor Author

zigomir commented Apr 11, 2018

👍 I'm using this in .babelrc file yes, and you're not stupid :)

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

Successfully merging this pull request may close these issues.

3 participants