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
07b24e6f
Unverified
Commit
07b24e6f
authored
Apr 21, 2020
by
Joe Haddad
Committed by
GitHub
Apr 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade webpack (#12082)
* Upgrade webpack * rebundle
parent
c08646a1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
735 deletions
+46
-735
webpack-config.ts
packages/next/build/webpack-config.ts
+0
-12
HotModuleReplacement.runtime.js
...es/next/build/webpack/lib/HotModuleReplacement.runtime.js
+0
-720
cjs.js
packages/next/compiled/terser-webpack-plugin/cjs.js
+1
-1
package.json
packages/next/package.json
+1
-1
yarn.lock
yarn.lock
+44
-1
No files found.
packages/next/build/webpack-config.ts
View file @
07b24e6f
...
...
@@ -156,18 +156,6 @@ export default async function getBaseWebpackConfig(
const
hasReactRefresh
=
dev
&&
!
isServer
&&
config
.
experimental
.
reactRefresh
===
true
// Inject additional features into webpack HMR runtime
if
(
hasReactRefresh
)
{
const
injectPath
=
require
.
resolve
(
'webpack/lib/HotModuleReplacement.runtime'
)
const
overridePath
=
require
.
resolve
(
'./webpack/lib/HotModuleReplacement.runtime'
)
require
(
overridePath
)
require
.
cache
[
injectPath
]
=
require
.
cache
[
overridePath
]
}
const
distDir
=
path
.
join
(
dir
,
config
.
distDir
)
const
defaultLoaders
=
{
babel
:
{
...
...
packages/next/build/webpack/lib/HotModuleReplacement.runtime.js
deleted
100644 → 0
View file @
c08646a1
This diff is collapsed.
Click to expand it.
packages/next/compiled/terser-webpack-plugin/cjs.js
View file @
07b24e6f
This diff is collapsed.
Click to expand it.
packages/next/package.json
View file @
07b24e6f
...
...
@@ -100,7 +100,7 @@
"styled-jsx"
:
"3.2.5"
,
"use-subscription"
:
"1.1.1"
,
"watchpack"
:
"2.0.0-beta.13"
,
"webpack"
:
"4.4
2.1
"
,
"webpack"
:
"4.4
3.0
"
,
"webpack-sources"
:
"1.4.3"
},
"peerDependencies"
:
{
...
...
yarn.lock
View file @
07b24e6f
...
...
@@ -3306,6 +3306,11 @@ acorn@^6.0.1, acorn@^6.1.1, acorn@^6.2.1:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.0.tgz#b659d2ffbafa24baf5db1cdbb2c94a983ecd2784"
integrity sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==
acorn@^6.4.1:
version "6.4.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474"
integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==
acorn@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c"
...
...
@@ -4722,7 +4727,7 @@ chokidar@^1.7.0:
optionalDependencies:
fsevents "^1.0.0"
chokidar@^2.0.2:
chokidar@^2.0.2
, chokidar@^2.1.8
:
version "2.1.8"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==
...
...
@@ -17072,6 +17077,15 @@ watchpack@^1.6.0:
graceful-fs "^4.1.2"
neo-async "^2.5.0"
watchpack@^1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2"
integrity sha512-+IF9hfUFOrYOOaKyfaI7h7dquUIOgyEMoQMLA7OP5FxegKA2+XdXThAZ9TU2kucfhDH7rfMHs1oPYziVGWRnZA==
dependencies:
chokidar "^2.1.8"
graceful-fs "^4.1.2"
neo-async "^2.5.0"
wcwidth@^1.0.0, wcwidth@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
...
...
@@ -17175,6 +17189,35 @@ webpack@4.42.1:
watchpack "^1.6.0"
webpack-sources "^1.4.1"
webpack@4.43.0:
version "4.43.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.43.0.tgz#c48547b11d563224c561dad1172c8aa0b8a678e6"
integrity sha512-GW1LjnPipFW2Y78OOab8NJlCflB7EFskMih2AHdvjbpKMeDJqEgSx24cXXXiPS65+WSwVyxtDsJH6jGX2czy+g==
dependencies:
"@webassemblyjs/ast" "1.9.0"
"@webassemblyjs/helper-module-context" "1.9.0"
"@webassemblyjs/wasm-edit" "1.9.0"
"@webassemblyjs/wasm-parser" "1.9.0"
acorn "^6.4.1"
ajv "^6.10.2"
ajv-keywords "^3.4.1"
chrome-trace-event "^1.0.2"
enhanced-resolve "^4.1.0"
eslint-scope "^4.0.3"
json-parse-better-errors "^1.0.2"
loader-runner "^2.4.0"
loader-utils "^1.2.3"
memory-fs "^0.4.1"
micromatch "^3.1.10"
mkdirp "^0.5.3"
neo-async "^2.6.1"
node-libs-browser "^2.2.1"
schema-utils "^1.0.0"
tapable "^1.1.3"
terser-webpack-plugin "^1.4.3"
watchpack "^1.6.1"
webpack-sources "^1.4.1"
websocket-driver@>=0.5.1:
version "0.7.3"
resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.3.tgz#a2d4e0d4f4f116f1e6297eba58b05d430100e9f9"
...
...
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