1
0
Fork 0
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:
Tim Neutkens 2018-11-07 15:38:35 +01:00 committed by GitHub
parent a82a2d8d1b
commit 2e14b4491b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()