Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 4, 2024
1 parent cdebb4a commit 45b5dc0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ export function setupPublicAssetStrategy(options: ModuleOptions['assets'] = {})
const renderedScriptSrc = new Map<string, string>()

// 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 })) {
Expand Down

0 comments on commit 45b5dc0

Please sign in to comment.