Skip to content

Commit

Permalink
fix: incorrect compiler address resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
luolei committed Oct 28, 2022
1 parent 7eded70 commit e89c1b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compile.ts
Expand Up @@ -20,7 +20,11 @@ function requireCompiler() {
if (compileRoot) {
try {
compiler = _require(_require.resolve('vue/compiler-sfc', { paths: [compileRoot] }))
} catch (e) {}
} catch (e) {
try {
compiler = _require(_require.resolve('@vue/compiler-sfc', { paths: [compileRoot] }))
} catch (e) {}
}
}

if (!compiler) {
Expand Down

0 comments on commit e89c1b4

Please sign in to comment.