File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -124,18 +124,19 @@ export type ResolvedOptions = Options &
124124
125125function resolveOptions ( rawOptions : Options ) : ResolvedOptions {
126126 const root = rawOptions . root ?? process . cwd ( )
127+ const isProduction =
128+ rawOptions . isProduction ?? process . env . NODE_ENV === 'production'
127129 return {
128130 ...rawOptions ,
129131 include : rawOptions . include ?? / \. v u e $ / ,
130- isProduction :
131- rawOptions . isProduction ?? process . env . NODE_ENV === 'production' ,
132+ isProduction,
132133 ssr : rawOptions . ssr ?? false ,
133134 sourceMap : rawOptions . sourceMap ?? true ,
134135 root,
135136 customElement : rawOptions . customElement ?? / \. c e \. v u e $ / ,
136137 reactivityTransform : rawOptions . reactivityTransform ?? false ,
137138 compiler : rawOptions . compiler as any , // to be set in buildStart
138- devToolsEnabled : process . env . NODE_ENV !== 'production' ,
139+ devToolsEnabled : ! isProduction ,
139140 cssDevSourcemap : false ,
140141 inlineTemplate : rawOptions . inlineTemplate ?? true ,
141142 }
You can’t perform that action at this time.
0 commit comments