mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
feat: mock mime packages and fix v1 compat
This commit is contained in:
parent
6ff7c7e02e
commit
2ad4a81362
@ -55,6 +55,9 @@ export const getRollupConfig = (config: SLSOptions) => {
|
||||
// Custom
|
||||
aliases.depd = '~runtime/mocks/depd'
|
||||
aliases.http = '~runtime/mocks/http'
|
||||
aliases['mime-db'] = '~runtime/mocks/mime-db'
|
||||
aliases['mime/lite'] = require.resolve('mime/lite')
|
||||
aliases.mime = '~runtime/mocks/mime'
|
||||
|
||||
// Builtin (browserify)
|
||||
aliases.buffer = require.resolve('buffer/index.js')
|
||||
|
Loading…
Reference in New Issue
Block a user