From fb4758637c0506e9b0e7ea6883568287f60ae077 Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Tue, 13 Sep 2022 05:21:30 -0700 Subject: [PATCH] feat: add compiler option in Options (#45) --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 733394e..0dc634e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,7 @@ export interface Options { // customElement?: boolean | string | RegExp | (string | RegExp)[] // reactivityTransform?: boolean | string | RegExp | (string | RegExp)[] - // compiler?: typeof _compiler + compiler?: typeof _compiler } export interface ResolvedOptions extends Options { @@ -113,7 +113,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin { }, buildStart() { - options.compiler = resolveCompiler(options.root) + options.compiler = options.compiler || resolveCompiler(options.root) }, async resolveId(id) {