mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: revert node-externals disabling in dev mode (#5452)
This commit is contained in:
parent
913069ff59
commit
6ce99d2cc8
@ -109,7 +109,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
|||||||
// https://webpack.js.org/configuration/externals/#externals
|
// https://webpack.js.org/configuration/externals/#externals
|
||||||
// https://github.com/liady/webpack-node-externals
|
// https://github.com/liady/webpack-node-externals
|
||||||
// https://vue-loader.vuejs.org/migrating.html#ssr-externals
|
// https://vue-loader.vuejs.org/migrating.html#ssr-externals
|
||||||
if (!this.dev && !this.buildContext.buildOptions.standalone) {
|
if (!this.buildContext.buildOptions.standalone) {
|
||||||
this.buildContext.options.modulesDir.forEach((dir) => {
|
this.buildContext.options.modulesDir.forEach((dir) => {
|
||||||
if (fs.existsSync(dir)) {
|
if (fs.existsSync(dir)) {
|
||||||
config.externals.push(
|
config.externals.push(
|
||||||
|
Loading…
Reference in New Issue
Block a user