Skip to content

Commit c074459

Browse files
committed
refactor: clean babel config when invoking
1 parent 79ee90b commit c074459

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/@vue/cli-plugin-babel/generator.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
module.exports = api => {
2+
// Most likely you want to overwrite the whole config to ensure it's working
3+
// without conflicts, e.g. for a project that used Jest without Babel.
4+
// It should be rare for the user to have their own special babel config
5+
// without using the Babel plugin already.
6+
delete api.generator.files['babel.config.js']
7+
28
api.extendPackage({
39
babel: {
410
presets: ['@vue/app']

0 commit comments

Comments
 (0)