Skip to content

Commit 1ba4b9c

Browse files
committed
docs: add description of babel plugin usage in TS plugin prompt (#4046)
closes #3206 (cherry picked from commit 82dbbeb)
1 parent 6996df3 commit 1ba4b9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vue/cli-plugin-typescript/prompts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const prompts = module.exports = [
1313
{
1414
name: `useTsWithBabel`,
1515
type: `confirm`,
16-
message: `Use Babel alongside TypeScript for auto-detected polyfills?`
16+
message: 'Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)?'
1717
},
1818
{
1919
name: `lint`,

packages/@vue/cli/lib/promptModules/typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = cli => {
2222
name: 'useTsWithBabel',
2323
when: answers => answers.features.includes('ts'),
2424
type: 'confirm',
25-
message: 'Use Babel alongside TypeScript for auto-detected polyfills?',
25+
message: 'Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)?',
2626
description: 'It will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.',
2727
default: answers => answers.features.includes('babel')
2828
})

0 commit comments

Comments
 (0)