vue-cli-plugin-electron-builder icon indicating copy to clipboard operation
vue-cli-plugin-electron-builder copied to clipboard

Fill electron version in browserslist

Open omairabdullah opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. If Vue uses babel, then browserslist is generated with a generic configuration which is inefficient.

Describe the solution you'd like We know the browser we will be supporting (electron). Write the specific version of electron in browserslist to target that specific version.

e.g. .browserslistrc should contain Electron >= 4.0.0

This should generate code with less polyfills.

Describe alternatives you've considered Manually edit the browserslist.

Additional context Add any other context or screenshots about the feature request here.

omairabdullah avatar Mar 17 '19 18:03 omairabdullah

Your app is built with modern mode enabled. I believe this disables ES5 polyfills. There may be a small number of polyfills that aren't necessary for electron. I will have to do more research to see if it would help to set the browserlist to the electron version.

nklayman avatar Mar 22 '19 23:03 nklayman