We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e6133 commit 0ea62d2Copy full SHA for 0ea62d2
src/compiler.ts
@@ -10,7 +10,7 @@ import type * as _compiler from 'vue/compiler-sfc'
10
11
export function resolveCompiler(root: string): typeof _compiler {
12
// resolve from project root first, then fallback to peer dep (if any)
13
- const compiler = tryRequire('vue/compiler-sfc', root)
+ const compiler = tryRequire('vue/compiler-sfc', root) || tryRequire('vue/compiler-sfc')
14
15
if (!compiler) {
16
throw new Error(
0 commit comments