mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor(server): externalsWhitelist ~> externalsAllowlist
This commit is contained in:
parent
8d51eebe0c
commit
5272a48ea9
@ -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
|
||||
})
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user