From 45b5dc06e202ec6d87962a06150e127cf0f1650d Mon Sep 17 00:00:00 2001 From: harlan Date: Thu, 5 Sep 2024 00:00:27 +1000 Subject: [PATCH] chore: fix tests --- src/assets.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 })) {