perf!: allow tree-shaking unstorage drivers (#1516)
* perf: allow tree-shaking unstorage drivers * fix: allow overriding fsBase at runtime * fix: remove `fsBase` export
This commit is contained in:
parent
415d36ce32
commit
fa44fae991
4 changed files with 24 additions and 8 deletions
|
@ -22,6 +22,7 @@ export default defineNuxtModule({
|
|||
...nuxt.options.alias,
|
||||
'unstorage/drivers/fs': 'unenv/runtime/mock/proxy',
|
||||
'unstorage/drivers/cloudflare-kv-http': 'unenv/runtime/mock/proxy',
|
||||
'#storage-config': resolve('./runtime/storage-config'),
|
||||
'node:events': 'unenv/runtime/node/events/index',
|
||||
'#build-info': resolve('./runtime/build-info'),
|
||||
}
|
||||
|
|
2
modules/tauri/runtime/storage-config.ts
Normal file
2
modules/tauri/runtime/storage-config.ts
Normal file
|
@ -0,0 +1,2 @@
|
|||
export const driver = undefined
|
||||
export const fsBase = ''
|
Loading…
Add table
Add a link
Reference in a new issue