mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(vite): fix type issue with legacy dev bundler
This commit is contained in:
parent
c222fe7aa9
commit
f9fa1a3e99
@ -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',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user