Skip to content

Commit

Permalink
fix(webpack): add node-fetch-native to externals list (#19755)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Mar 17, 2023
1 parent 093e1b1 commit 4bc3738
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/webpack/src/config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import WebpackBaseConfig from './base'

const nativeFileExtensions = [
'.json',
'.cjs',
'.mjs',
'.js'
]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bc3738

Please sign in to comment.