mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-17 12:50:04 -06:00
12 lines
274 B
JavaScript
12 lines
274 B
JavaScript
module.exports = cli => {
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (
|
|
!answers.features.includes('ts') ||
|
|
answers.useTsWithBabel ||
|
|
answers.experimentalCompileTsWithBabel
|
|
) {
|
|
options.plugins['@vue/cli-plugin-babel'] = {}
|
|
}
|
|
})
|
|
}
|