Skip to content

Commit

Permalink
chore: use @vue/compiler-vue2 (#4613)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Jul 25, 2024
1 parent 0cb793f commit 3924ede
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/language-core/lib/utils/vue2TemplateCompiler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as CompilerDOM from '@vue/compiler-dom';

const Vue2TemplateCompiler: typeof import('vue-template-compiler') = require('vue-template-compiler/build');
const Vue2TemplateCompiler: typeof import('@vue/compiler-vue2') = require('@vue/compiler-vue2/build');

export const compile: typeof CompilerDOM.compile = (template, options = {}) => {

Expand Down
2 changes: 1 addition & 1 deletion packages/language-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"minimatch": "^9.0.3",
"muggle-string": "^0.4.1",
"path-browserify": "^1.0.1",
"vue-template-compiler": "^2.7.14"
"@vue/compiler-vue2": "^2.7.16"
},
"devDependencies": {
"@types/minimatch": "^5.1.2",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3924ede

Please sign in to comment.