File tree 1 file changed +4
-4
lines changed
packages/vite-plugin-checker/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
61
61
let initialized = false
62
62
let initializeCounter = 0
63
63
let checkers : ServeAndBuildChecker [ ] = [ ]
64
- let skipRuntime = false
64
+ let isProduction = false
65
65
let devBase = '/'
66
66
let viteMode : ConfigEnv [ 'command' ] | undefined
67
67
let buildWatch = false
@@ -99,7 +99,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
99
99
configResolved ( config ) {
100
100
logger = config . logger
101
101
devBase = config . base
102
- skipRuntime ||= config . isProduction || config . command === 'build'
102
+ isProduction ||= config . isProduction || config . command === 'build'
103
103
buildWatch = ! ! config . build . watch
104
104
} ,
105
105
buildEnd ( ) {
@@ -132,7 +132,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
132
132
} ,
133
133
transformIndexHtml ( ) {
134
134
if ( initialized ) return
135
- if ( skipRuntime ) return
135
+ if ( isProduction ) return
136
136
137
137
return [
138
138
{
@@ -146,7 +146,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
146
146
if ( initialized ) return
147
147
// only run in build mode
148
148
// run a bin command in a separated process
149
- if ( ! skipRuntime || ! enableBuild ) return
149
+ if ( ! isProduction || ! enableBuild ) return
150
150
151
151
const localEnv = npmRunPath . env ( {
152
152
env : process . env ,
You can’t perform that action at this time.
0 commit comments