Skip to content

Commit 9a0281e

Browse files
wip(types): ignore inconsistent babelParserPlugins type source
1 parent 20f3ab3 commit 9a0281e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/createVue3SFCModule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export async function createSFCModule(source : string, filename : AbstractPath,
132132
const scriptBlock = sfc_compileScript(descriptor, {
133133
isProd,
134134
id: scopeId,
135+
// @ts-ignore (unstable resolution: node_modules/@babel/parser/typings/babel-parser vs node_modules/@types/babel__core/node_modules/@babel/parser/typings/babel-parser)
135136
babelParserPlugins: additionalBabelParserPlugins, // [...babelParserDefaultPlugins, 'jsx'] + additionalBabelParserPlugins // babelParserDefaultPlugins = [ 'bigInt', 'optionalChaining', 'nullishCoalescingOperator' ]
136137
// doc: https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md#inline-template-mode
137138
// vue-loader next : https://github.com/vuejs/vue-loader/blob/12aaf2ea77add8654c50c8751bad135f1881e53f/src/resolveScript.ts#L59

0 commit comments

Comments
 (0)