Skip to content

Commit 7ceed8a

Browse files
fix(vue3): <script setup> inlineTemplate
1 parent 10d3b62 commit 7ceed8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/createVue3SFCModule.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ export async function createSFCModule(source : string, filename : string, option
141141
isProd,
142142
id: scopeId,
143143
babelParserPlugins,
144+
// doc: https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md#inline-template-mode
145+
// vue-loader next : https://github.com/vuejs/vue-loader/blob/12aaf2ea77add8654c50c8751bad135f1881e53f/src/resolveScript.ts#L59
146+
inlineTemplate: true,
144147
templateOptions: compileTemplateOptions,
145148
});
146149

0 commit comments

Comments
 (0)