Skip to content

Commit

Permalink
fix: (temporarily) disable template ast reuse
Browse files Browse the repository at this point in the history
For the same reason as vitejs/vite-plugin-vue@5d68fbd

TODO:
Re-enable this optimization with the newly added option in vuejs/core@6fab855
  • Loading branch information
sodatea committed Dec 30, 2023
1 parent 50699e6 commit 31b03af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templateLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const TemplateLoader: LoaderDefinitionFunction = function (source, inMap: any) {

const compiled = compileTemplate({
source,
ast:
descriptor.template && !descriptor.template.lang
? descriptor.template.ast
: undefined,
// ast:
// descriptor.template && !descriptor.template.lang
// ? descriptor.template.ast
// : undefined,
filename: loaderContext.resourcePath,
inMap,
id: scopeId,
Expand Down

0 comments on commit 31b03af

Please sign in to comment.