Skip to content

Commit

Permalink
Bundle @babel/runtime into server bundle (#5619)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored Nov 7, 2018
1 parent a82a2d8 commit 2e14b44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/next/build/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2e14b44

Please sign in to comment.