mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
perf(nuxt): cache result of importing styles module (#18734)
This commit is contained in:
parent
03d6737089
commit
2b75414f47
@ -69,7 +69,7 @@ const getStaticRenderedHead = (): Promise<NuxtMeta> => import('#head-static').th
|
|||||||
const getServerEntry = () => import('#build/dist/server/server.mjs').then(r => r.default || r)
|
const getServerEntry = () => import('#build/dist/server/server.mjs').then(r => r.default || r)
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const getSSRStyles = (): Promise<Record<string, () => Promise<string[]>>> => import('#build/dist/server/styles.mjs').then(r => r.default || r)
|
const getSSRStyles = lazyCachedFunction((): Promise<Record<string, () => Promise<string[]>>> => import('#build/dist/server/styles.mjs').then(r => r.default || r))
|
||||||
|
|
||||||
// -- SSR Renderer --
|
// -- SSR Renderer --
|
||||||
const getSSRRenderer = lazyCachedFunction(async () => {
|
const getSSRRenderer = lazyCachedFunction(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user