We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8dd58 commit f737579Copy full SHA for f737579
lib/commands/preview.ts
@@ -82,9 +82,13 @@ export class PreviewCommand implements ICommand {
82
83
const commandIndex = process.argv.indexOf("preview");
84
const commandArgs = process.argv.slice(commandIndex + 1);
85
- this.$childProcess.spawn(previewCLIBinPath, commandArgs, {
86
- stdio: "inherit",
87
- });
+ this.$childProcess.spawn(
+ process.execPath,
+ [previewCLIBinPath, ...commandArgs],
88
+ {
89
+ stdio: "inherit",
90
+ }
91
+ );
92
}
93
94
async canExecute(args: string[]): Promise<boolean> {
0 commit comments