Fix plugin apply args when filtering (#6601)
This commit is contained in:
parent
0344465dea
commit
f112c12b15
2 changed files with 6 additions and 1 deletions
5
.changeset/tame-taxis-perform.md
Normal file
5
.changeset/tame-taxis-perform.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix plugin apply args when filtering
|
|
@ -196,7 +196,7 @@ export async function createVite(
|
|||
const applyToFilter = command === 'build' ? 'serve' : 'build';
|
||||
const applyArgs = [
|
||||
{ ...settings.config.vite, mode },
|
||||
{ command, mode },
|
||||
{ command: command === 'dev' ? 'serve' : command, mode },
|
||||
];
|
||||
// @ts-expect-error ignore TS2589: Type instantiation is excessively deep and possibly infinite.
|
||||
plugins = plugins.flat(Infinity).filter((p) => {
|
||||
|
|
Loading…
Reference in a new issue