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 77e2516 commit 0cc056bCopy full SHA for 0cc056b
1 file changed
lib/services/bundler/bundler-compiler-service.ts
@@ -359,14 +359,16 @@ export class BundlerCompilerService
359
prepareData,
360
);
361
const isVite = this.getBundler() === "vite";
362
+ const cliArgs = await this.buildEnvCommandLineParams(
363
+ envData,
364
+ platformData,
365
+ projectData,
366
+ prepareData,
367
+ );
368
+ // Note: With Vite, we need `--` to prevent vite cli from erroring on unknown options.
369
const envParams = isVite
- ? [`--mode=${platformData.platformNameLowerCase}`]
- : await this.buildEnvCommandLineParams(
- envData,
- platformData,
- projectData,
- prepareData,
- );
370
+ ? [`--mode=${platformData.platformNameLowerCase}`, "--", ...cliArgs]
371
+ : cliArgs;
372
const additionalNodeArgs =
373
semver.major(process.version) <= 8 ? ["--harmony"] : [];
374
0 commit comments