mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +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 { Manifest } from 'vue-bundle-renderer'
|
||||||
import type { ViteBuildContext } from './vite'
|
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
|
// Write client manifest for use in vue-bundle-renderer
|
||||||
const clientDist = resolve(ctx.nuxt.options.buildDir, 'dist/client')
|
const clientDist = resolve(ctx.nuxt.options.buildDir, 'dist/client')
|
||||||
const serverDist = resolve(ctx.nuxt.options.buildDir, 'dist/server')
|
const serverDist = resolve(ctx.nuxt.options.buildDir, 'dist/server')
|
||||||
@ -17,7 +17,7 @@ export async function writeManifest (ctx: ViteBuildContext) {
|
|||||||
'@vite/client': {
|
'@vite/client': {
|
||||||
isEntry: true,
|
isEntry: true,
|
||||||
file: '@vite/client',
|
file: '@vite/client',
|
||||||
css: [],
|
css,
|
||||||
module: true,
|
module: true,
|
||||||
resourceType: 'script',
|
resourceType: 'script',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user