Просмотр исходного кода

chore(template-explorer): Fix template-explorer highlighting (#8956)

白雾三语 2 лет назад
Родитель
Сommit
59762335ac
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/template-explorer/src/index.ts

+ 1 - 1
packages/template-explorer/src/index.ts

@@ -76,8 +76,8 @@ window.init = () => {
       const compileFn = ssrMode.value ? ssrCompile : compile
       const start = performance.now()
       const { code, ast, map } = compileFn(source, {
-        filename: 'ExampleTemplate.vue',
         ...compilerOptions,
+        filename: 'ExampleTemplate.vue',
         sourceMap: true,
         onError: err => {
           errors.push(err)