Skip to content

Commit 31b03af

Browse files
committed
fix: (temporarily) disable template ast reuse
For the same reason as vitejs/vite-plugin-vue@5d68fbd TODO: Re-enable this optimization with the newly added option in vuejs/core@6fab855
1 parent 50699e6 commit 31b03af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/templateLoader.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const TemplateLoader: LoaderDefinitionFunction = function (source, inMap: any) {
4444

4545
const compiled = compileTemplate({
4646
source,
47-
ast:
48-
descriptor.template && !descriptor.template.lang
49-
? descriptor.template.ast
50-
: undefined,
47+
// ast:
48+
// descriptor.template && !descriptor.template.lang
49+
// ? descriptor.template.ast
50+
// : undefined,
5151
filename: loaderContext.resourcePath,
5252
inMap,
5353
id: scopeId,

0 commit comments

Comments
 (0)