mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +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
|
// Custom
|
||||||
aliases.depd = '~runtime/mocks/depd'
|
aliases.depd = '~runtime/mocks/depd'
|
||||||
aliases.http = '~runtime/mocks/http'
|
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)
|
// Builtin (browserify)
|
||||||
aliases.buffer = require.resolve('buffer/index.js')
|
aliases.buffer = require.resolve('buffer/index.js')
|
||||||
|
Loading…
Reference in New Issue
Block a user