diff --git a/src/compiler.ts b/src/compiler.ts index 37e4503..3f05f11 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -10,7 +10,7 @@ import type * as _compiler from 'vue/compiler-sfc' export function resolveCompiler(root: string): typeof _compiler { // resolve from project root first, then fallback to peer dep (if any) - const compiler = tryRequire('vue/compiler-sfc', root) + const compiler = tryRequire('vue/compiler-sfc', root) || tryRequire('vue/compiler-sfc') if (!compiler) { throw new Error(