mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 14:41:25 +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'
|
return 'cheap-module-source-map'
|
||||||
}
|
}
|
||||||
|
|
||||||
get externalsWhitelist () {
|
get externalsAllowlist () {
|
||||||
return [
|
return [
|
||||||
this.isNonNativeImport.bind(this),
|
this.isNonNativeImport.bind(this),
|
||||||
...this.normalizeTranspile()
|
...this.normalizeTranspile()
|
||||||
@ -134,7 +134,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
|||||||
if (fs.existsSync(dir)) {
|
if (fs.existsSync(dir)) {
|
||||||
config.externals.push(
|
config.externals.push(
|
||||||
nodeExternals({
|
nodeExternals({
|
||||||
allowlist: this.externalsWhitelist,
|
allowlist: this.externalsAllowlist,
|
||||||
modulesDir: dir
|
modulesDir: dir
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user