Skip to content

Commit

Permalink
fix(vite): fix type issue with legacy dev bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 1, 2024
1 parent c222fe7 commit f9fa1a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -17,7 +17,7 @@ export async function writeManifest (ctx: ViteBuildContext) {
'@vite/client': {
isEntry: true,
file: '@vite/client',
css: [],
css,
module: true,
resourceType: 'script',
},
Expand Down

0 comments on commit f9fa1a3

Please sign in to comment.