Skip to content

Commit 632bd5f

Browse files
author
Franck Freiburger
committed
perf(core): handle sfc_compileScript sourceMap parameter
1 parent 1d9fda8 commit 632bd5f

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
@@ -145,6 +145,7 @@ export async function createSFCModule(source : string, filename : AbstractPath,
145145
// src: https://github.com/vuejs/vue-next/blob/15baaf14f025f6b1d46174c9713a2ec517741d0d/packages/compiler-sfc/src/compileScript.ts#L43
146146
const scriptBlock = sfc_compileScript(descriptor, {
147147
isProd,
148+
sourceMap: genSourcemap,
148149
id: scopeId,
149150
// @ts-ignore (unstable resolution: node_modules/@babel/parser/typings/babel-parser vs node_modules/@types/babel__core/node_modules/@babel/parser/typings/babel-parser)
150151
babelParserPlugins: [ ...contextBabelParserPlugins, ...additionalBabelParserPlugins ], // [...babelParserDefaultPlugins, 'jsx'] + additionalBabelParserPlugins // babelParserDefaultPlugins = [ 'bigInt', 'optionalChaining', 'nullishCoalescingOperator' ]

0 commit comments

Comments
 (0)