mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 = [
|
||||
'.json',
|
||||
'.cjs',
|
||||
'.mjs',
|
||||
'.js'
|
||||
]
|
||||
|
||||
@ -123,7 +125,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
||||
maxEntrypointSize: Infinity,
|
||||
maxAssetSize: Infinity
|
||||
},
|
||||
externals: [].concat(config.externals || [])
|
||||
externals: ['node-fetch-native'].concat(config.externals || [])
|
||||
})
|
||||
|
||||
// https://webpack.js.org/configuration/externals/#externals
|
||||
|
Loading…
Reference in New Issue
Block a user