diff --git a/src/assets.ts b/src/assets.ts index 194436dd..beda4dfc 100644 --- a/src/assets.ts +++ b/src/assets.ts @@ -23,9 +23,11 @@ export function setupPublicAssetStrategy(options: ModuleOptions['assets'] = {}) const renderedScriptSrc = new Map() // TODO: refactor to use nitro storage when it can be cached between builds - const storage = createStorage(fsDriver({ - base: 'node_modules/.cache/nuxt/scripts', - })) + const storage = createStorage({ + driver: fsDriver({ + base: 'node_modules/.cache/nuxt/scripts', + }), + }) function normalizeScriptData(src: string): string { if (hasProtocol(src, { acceptRelative: true })) {