Skip to content

Commit

Permalink
feat: add compiler option in Options (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Sep 13, 2022
1 parent 3b64ccc commit fb47586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fb47586

Please sign in to comment.