We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lru-cache
1 parent 754e39f commit 61bcb90Copy full SHA for 61bcb90
1 file changed
src/module.ts
@@ -1,6 +1,7 @@
1
import { resolve } from 'upath'
2
import defu from 'defu'
3
import { parseURL, withLeadingSlash } from 'ufo'
4
+import LruCache from 'lru-cache'
5
import type { Module } from '@nuxt/types'
6
import { setupStaticGeneration } from './generate'
7
import { resolveProviders, detectProvider } from './provider'
@@ -87,7 +88,6 @@ const imageModule: Module<ModuleOptions> = async function imageModule (moduleOpt
87
88
setupStaticGeneration(nuxt, options)
89
})
90
- const LruCache = await import('lru-cache').then(r => r.default || r)
91
const cache = new LruCache()
92
nuxt.hook('vue-renderer:context', (ssrContext: any) => {
93
ssrContext.cache = cache
0 commit comments