Skip to content

Commit

Permalink
fix: support spawn in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jun 14, 2021
1 parent 8a469a8 commit 5322714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite-plugin-checker/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import npmRunPath from 'npm-run-path'
import os from 'os'
import { ConfigEnv, Plugin } from 'vite'

import { ServeAndBuildChecker, OverlayErrorAction, UserPluginConfig } from './types'
import { OverlayErrorAction, ServeAndBuildChecker, UserPluginConfig } from './types'

export * from './types'
export * from './codeFrame'
Expand Down Expand Up @@ -71,6 +71,7 @@ export default function Plugin(userConfig?: UserPluginConfig): Plugin {
cwd: process.cwd(),
stdio: 'inherit',
env: localEnv,
shell: os.platform() === 'win32',
})

if (enableBuild) {
Expand Down

0 comments on commit 5322714

Please sign in to comment.