refactor(server): externalsWhitelist ~> externalsAllowlist

This commit is contained in:
Pooya Parsa 2020-07-09 13:33:20 +02:00
parent 8d51eebe0c
commit 5272a48ea9

View File

@ -23,7 +23,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
return 'cheap-module-source-map'
}
get externalsWhitelist () {
get externalsAllowlist () {
return [
this.isNonNativeImport.bind(this),
...this.normalizeTranspile()
@ -134,7 +134,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
if (fs.existsSync(dir)) {
config.externals.push(
nodeExternals({
allowlist: this.externalsWhitelist,
allowlist: this.externalsAllowlist,
modulesDir: dir
})
)