mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Bundle @babel/runtime into server bundle (#5619)
This commit is contained in:
parent
a82a2d8d1b
commit
2e14b4491b
|
@ -48,6 +48,10 @@ function externalsConfig (dir, isServer) {
|
|||
return callback()
|
||||
}
|
||||
|
||||
if (res.match(/node_modules[/\\]@babel[/\\]runtime[/\\]/)) {
|
||||
return callback()
|
||||
}
|
||||
|
||||
// Webpack itself has to be compiled because it doesn't always use module relative paths
|
||||
if (res.match(/node_modules[/\\]webpack/) || res.match(/node_modules[/\\]css-loader/)) {
|
||||
return callback()
|
||||
|
|
Loading…
Reference in a new issue