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
9770d192
Commit
9770d192
authored
Sep 14, 2019
by
Maël Nison
Committed by
Joe Haddad
Sep 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevents externalizing non-hoisted packages (#8739)
parent
8cc60713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
webpack-config.ts
packages/next/build/webpack-config.ts
+11
-0
No files found.
packages/next/build/webpack-config.ts
View file @
9770d192
...
...
@@ -336,6 +336,17 @@ export default async function getBaseWebpackConfig(
return
callback
()
}
let
baseRes
try
{
baseRes
=
resolveRequest
(
request
,
dir
)
}
catch
(
err
)
{}
// If the package, when required from the root, would be different from
// what the real resolution would use, then we cannot externalize it
if
(
baseRes
!==
res
)
{
return
callback
()
}
// Default pages have to be transpiled
if
(
!
res
.
match
(
/next
[/\\]
dist
[/\\]
next-server
[/\\]
/
)
&&
...
...
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