File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -359,14 +359,16 @@ export class BundlerCompilerService
359
359
prepareData ,
360
360
) ;
361
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.
362
369
const envParams = isVite
363
- ? [ `--mode=${ platformData . platformNameLowerCase } ` ]
364
- : await this . buildEnvCommandLineParams (
365
- envData ,
366
- platformData ,
367
- projectData ,
368
- prepareData ,
369
- ) ;
370
+ ? [ `--mode=${ platformData . platformNameLowerCase } ` , "--" , ...cliArgs ]
371
+ : cliArgs ;
370
372
const additionalNodeArgs =
371
373
semver . major ( process . version ) <= 8 ? [ "--harmony" ] : [ ] ;
372
374
You can’t perform that action at this time.
0 commit comments