mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
fix(webpack): add node-fetch-native
to externals list (#19755)
This commit is contained in:
parent
093e1b1c8d
commit
4bc3738f61
@ -9,6 +9,8 @@ import WebpackBaseConfig from './base'
|
|||||||
|
|
||||||
const nativeFileExtensions = [
|
const nativeFileExtensions = [
|
||||||
'.json',
|
'.json',
|
||||||
|
'.cjs',
|
||||||
|
'.mjs',
|
||||||
'.js'
|
'.js'
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -123,7 +125,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
|||||||
maxEntrypointSize: Infinity,
|
maxEntrypointSize: Infinity,
|
||||||
maxAssetSize: Infinity
|
maxAssetSize: Infinity
|
||||||
},
|
},
|
||||||
externals: [].concat(config.externals || [])
|
externals: ['node-fetch-native'].concat(config.externals || [])
|
||||||
})
|
})
|
||||||
|
|
||||||
// https://webpack.js.org/configuration/externals/#externals
|
// https://webpack.js.org/configuration/externals/#externals
|
||||||
|
Loading…
Reference in New Issue
Block a user