From f9fa1a3e994bf3df3308fa76125787f7a93c55bf Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 1 Jul 2024 23:33:52 +0100 Subject: [PATCH] fix(vite): fix type issue with legacy dev bundler --- packages/vite/src/manifest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/manifest.ts b/packages/vite/src/manifest.ts index 33666dde89..9d4490f36b 100644 --- a/packages/vite/src/manifest.ts +++ b/packages/vite/src/manifest.ts @@ -8,7 +8,7 @@ import { normalizeViteManifest } from 'vue-bundle-renderer' import type { Manifest } from 'vue-bundle-renderer' import type { ViteBuildContext } from './vite' -export async function writeManifest (ctx: ViteBuildContext) { +export async function writeManifest (ctx: ViteBuildContext, css: string[] = []) { // Write client manifest for use in vue-bundle-renderer const clientDist = resolve(ctx.nuxt.options.buildDir, 'dist/client') const serverDist = resolve(ctx.nuxt.options.buildDir, 'dist/server') @@ -17,7 +17,7 @@ export async function writeManifest (ctx: ViteBuildContext) { '@vite/client': { isEntry: true, file: '@vite/client', - css: [], + css, module: true, resourceType: 'script', },