underfin / vite-plugin-vue2

Vue2 plugin for Vite
621 stars 84 forks source link

fix: update babel dependencies #166

Closed Aaron-Pool closed 2 years ago

Aaron-Pool commented 2 years ago

2 goals for this PR:

1) babel-preset-env is completely unused in this project, from what I can see. It's also very outdated (the modern version is @babel/preset-env. I could have updated to the modern preset, but like I said, I don't think it's even being used. What it was doing, however, was causing an old version of browserslist to be pulled in to my project, which was clashing with the current version and throwing warnings during build steps.

2) Update @babel dependencies to 7.16.x to support new typescript type specifier syntax (e.g: import { type SomeType, type SomeOtherType, SomeClass } from './someTypeDescriptions.ts'). Currently this plugin will choke if this syntax is used in .vue files.

Let me know if any other changes are needed 👍