diff --git a/packages/vite/src/css.ts b/packages/vite/src/css.ts index 5a8b82f3fa..9b059082ff 100644 --- a/packages/vite/src/css.ts +++ b/packages/vite/src/css.ts @@ -9,13 +9,12 @@ function sortPlugins ({ plugins, order }: NuxtOptions['postcss']): string[] { } export async function resolveCSSOptions (nuxt: Nuxt): Promise { - const css: ViteConfig['css'] & { postcss: NonNullable['postcss'], string>> } = { + const css: ViteConfig['css'] & { postcss: NonNullable['postcss'], string>> & { plugins: Plugin[] } } = { postcss: { plugins: [], }, } - css.postcss.plugins = [] const postcssOptions = nuxt.options.postcss const jiti = createJiti(nuxt.options.rootDir, { alias: nuxt.options.alias })