mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-13 02:29:40 -06:00
fix(cli-plugin-babel): properly exports the babel preset (#4533)
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = api => {
|
||||
|
||||
api.extendPackage({
|
||||
babel: {
|
||||
presets: ['@vue/app']
|
||||
presets: ['@vue/cli-plugin-babel/preset']
|
||||
},
|
||||
dependencies: {
|
||||
'core-js': '^3.1.2'
|
||||
|
||||
1
packages/@vue/cli-plugin-babel/preset.js
Normal file
1
packages/@vue/cli-plugin-babel/preset.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('@vue/babel-preset-app')
|
||||
@@ -60,7 +60,7 @@ test('use with Babel', async () => {
|
||||
}
|
||||
])
|
||||
|
||||
expect(files['babel.config.js']).toMatch(`presets: [\n '@vue/app'\n ]`)
|
||||
expect(files['babel.config.js']).toMatch(`presets: [\n '@vue/cli-plugin-babel/preset'\n ]`)
|
||||
expect(files['tsconfig.json']).toMatch(`"target": "esnext"`)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user