fix(webpack): add node-fetch-native to externals list (#19755)

This commit is contained in:
Daniel Roe 2023-03-17 10:24:55 +00:00 committed by GitHub
parent 093e1b1c8d
commit 4bc3738f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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