Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2e14b449
Unverified
Commit
2e14b449
authored
Nov 07, 2018
by
Tim Neutkens
Committed by
GitHub
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bundle @babel/runtime into server bundle (#5619)
parent
a82a2d8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
webpack.js
packages/next/build/webpack.js
+4
-0
No files found.
packages/next/build/webpack.js
View file @
2e14b449
...
@@ -48,6 +48,10 @@ function externalsConfig (dir, isServer) {
...
@@ -48,6 +48,10 @@ function externalsConfig (dir, isServer) {
return
callback
()
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
// 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/
))
{
if
(
res
.
match
(
/node_modules
[/\\]
webpack/
)
||
res
.
match
(
/node_modules
[/\\]
css-loader/
))
{
return
callback
()
return
callback
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment