mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-09 09:00:16 -05:00
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
module.exports = api => {
|
|
api.onPromptComplete(options => {
|
|
if (!options.features.includes('ts') && !options.features.includes('-babel')) {
|
|
api.extendPackage({
|
|
devDependencies: {
|
|
'@vue/cli-plugin-babel': '^0.1.0',
|
|
'babel-preset-vue-app': '^2.0.0'
|
|
},
|
|
babel: {
|
|
presets: ['vue-app'] // TODO update babel-preset-vue-app
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|