forked from vuejs/vue-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should not add polyfills from transform-runtime plugin
It is due to a misunderstanding when upgrading babel from 7.0.0-beta.47 to 7.x. In Vue CLI, usage-based polyfills are **only** added by @babel/preset-env so that it avoids overheads. `transform-runtime` plugin adds polyfills regardless of env targets so we must disable its polyfill feature. Though, there're edge cases where runtime-helpers' polyfill dependency are not correctly added (babel/babel#7597), so we also need to whitelist `@babel/runtime` for webpack to transpile.
- Loading branch information
1 parent
eeb350e
commit 37cc74d
Showing
4 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters