mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
perf: initial vite impl
This commit is contained in:
parent
9bb37f68cd
commit
e155e0483e
@ -201,7 +201,8 @@ export const bundle: NuxtBuilder['bundle'] = async (nuxt) => {
|
|||||||
|
|
||||||
// Remove CSS entries for files that will have inlined styles
|
// Remove CSS entries for files that will have inlined styles
|
||||||
ctx.nuxt.hook('build:manifest', (manifest) => {
|
ctx.nuxt.hook('build:manifest', (manifest) => {
|
||||||
for (const [key, entry] of Object.entries(manifest)) {
|
for (const key in manifest) {
|
||||||
|
const entry = manifest[key]
|
||||||
const shouldRemoveCSS = chunksWithInlinedCSS.has(key) && !entry.isEntry
|
const shouldRemoveCSS = chunksWithInlinedCSS.has(key) && !entry.isEntry
|
||||||
if (entry.isEntry && chunksWithInlinedCSS.has(key)) {
|
if (entry.isEntry && chunksWithInlinedCSS.has(key)) {
|
||||||
// @ts-expect-error internal key
|
// @ts-expect-error internal key
|
||||||
|
Loading…
Reference in New Issue
Block a user