Skip to content

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