Skip to content

Commit 159dea9

Browse files
wip(vue2): custom delimiters support
1 parent a55705d commit 159dea9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/createVue2SFCModule.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function createSFCModule(source : string, filename : string, option
7777
const component = {};
7878

7979

80-
const { moduleCache, compiledCache, pathHandlers: { resolve }, getFile, addStyle, log, additionalBabelPlugins = [], customBlockHandler } = options;
80+
const { delimiters, moduleCache, compiledCache, pathHandlers: { resolve }, getFile, addStyle, log, additionalBabelPlugins = [], customBlockHandler } = options;
8181

8282
// vue-loader next: https://github.com/vuejs/vue-loader/blob/next/src/index.ts#L91
8383
const descriptor = sfc_parse({
@@ -110,6 +110,7 @@ export async function createSFCModule(source : string, filename : string, option
110110
filename,
111111
compiler: vueTemplateCompiler as VueTemplateCompiler,
112112
compilerOptions: {
113+
delimiters,
113114
outputSourceRange: true,
114115
scopeId: hasScoped ? scopeId : null,
115116
comments: true

0 commit comments

Comments
 (0)