fix(cli-plugin-babel): properly exports the babel preset (#4533)

This commit is contained in:
Maël Nison
2019-09-02 12:24:14 +02:00
committed by Haoqun Jiang
parent fbd592ef8e
commit be0cb95246
3 changed files with 3 additions and 2 deletions

View File

@@ -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'

View File

@@ -0,0 +1 @@
module.exports = require('@vue/babel-preset-app')

View File

@@ -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"`)
})