Skip to content

Commit fb47586

Browse files
authored
feat: add compiler option in Options (#45)
1 parent 3b64ccc commit fb47586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface Options {
4545

4646
// customElement?: boolean | string | RegExp | (string | RegExp)[]
4747
// reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]
48-
// compiler?: typeof _compiler
48+
compiler?: typeof _compiler
4949
}
5050

5151
export interface ResolvedOptions extends Options {
@@ -113,7 +113,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
113113
},
114114

115115
buildStart() {
116-
options.compiler = resolveCompiler(options.root)
116+
options.compiler = options.compiler || resolveCompiler(options.root)
117117
},
118118

119119
async resolveId(id) {

0 commit comments

Comments
 (0)