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
54ab3bc5
Commit
54ab3bc5
authored
Jun 28, 2018
by
Andrew Cherniavskii
Committed by
Tim Neutkens
Jun 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code splitting on Windows (#4685)
Closes #4684
parent
e98a877e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
webpack.js
build/webpack.js
+2
-1
No files found.
build/webpack.js
View file @
54ab3bc5
...
@@ -207,8 +207,9 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
...
@@ -207,8 +207,9 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
// Because _app.js is used on every page we don't want to
// Because _app.js is used on every page we don't want to
// duplicate them in other bundles.
// duplicate them in other bundles.
const
chunks
=
module
.
getChunks
()
const
chunks
=
module
.
getChunks
()
const
appBundlePath
=
path
.
normalize
(
'bundles/pages/_app.js'
)
const
inAppBundle
=
chunks
.
some
(
chunk
=>
chunk
.
entryModule
const
inAppBundle
=
chunks
.
some
(
chunk
=>
chunk
.
entryModule
?
chunk
.
entryModule
.
name
===
'bundles/pages/_app.js'
?
chunk
.
entryModule
.
name
===
appBundlePath
:
null
:
null
)
)
...
...
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