Skip to content

Enhanced documentation on browser compatibility page #5490

Open
@jaunt

Description

@jaunt

What problem does this feature solve?

I'd like to know if .browserlistrc is used when using the suggested setting under the point 2 in the section: useBuiltIns: 'usage', and what the difference is between the two mentioned presets: @vue/babel-preset-app vs. @vue/app

2. If the dependency ships ES5 code and explicitly lists the polyfills needed: you can pre-include the needed polyfills using the polyfills option for @vue/babel-preset-app. Note that es.promise is included by default because it's very common for libs to depend on Promises.

// babel.config.js
module.exports = {
  presets: [
    ['@vue/app', {
      polyfills: [
        'es.promise',
        'es.symbol'
      ]
    }]
  ]
}

What does the proposed API look like?

This is a documentation augmentation request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions