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
b785fbc5
Unverified
Commit
b785fbc5
authored
Jan 26, 2021
by
Joe Haddad
Committed by
GitHub
Jan 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: upgrade webpack5 (#21563)
parent
35efe8d8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1610 additions
and
495 deletions
+1610
-495
package.json
packages/next/bundles/package.json
+2
-2
yarn.lock
packages/next/bundles/yarn.lock
+17
-22
bundle5.js
packages/next/compiled/webpack/bundle5.js
+1364
-471
lazy-compilation-node.js
packages/next/compiled/webpack/lazy-compilation-node.js
+99
-0
lazy-compilation-web.js
packages/next/compiled/webpack/lazy-compilation-web.js
+128
-0
No files found.
packages/next/bundles/package.json
View file @
b785fbc5
{
{
"dependencies"
:
{
"dependencies"
:
{
"webpack5"
:
"npm:webpack@5"
,
"schema-utils3"
:
"npm:schema-utils@3.0.0"
,
"schema-utils3"
:
"npm:schema-utils@3.0.0"
,
"webpack-sources2"
:
"npm:webpack-sources@2.2.0"
"webpack-sources2"
:
"npm:webpack-sources@2.2.0"
,
"webpack5"
:
"npm:webpack@5"
},
},
"resolutions"
:
{
"resolutions"
:
{
"browserslist"
:
"4.16.1"
,
"browserslist"
:
"4.16.1"
,
...
...
packages/next/bundles/yarn.lock
View file @
b785fbc5
...
@@ -18,25 +18,20 @@
...
@@ -18,25 +18,20 @@
"@types/estree" "*"
"@types/estree" "*"
"@types/json-schema" "*"
"@types/json-schema" "*"
"@types/estree@*":
"@types/estree@*"
, "@types/estree@^0.0.46"
:
version "0.0.46"
version "0.0.46"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.46.tgz#0fb6bfbbeabd7a30880504993369c4bf1deab1fe"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.46.tgz#0fb6bfbbeabd7a30880504993369c4bf1deab1fe"
integrity sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==
integrity sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==
"@types/estree@^0.0.45":
version "0.0.45"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.45.tgz#e9387572998e5ecdac221950dab3e8c3b16af884"
integrity sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g==
"@types/json-schema@*", "@types/json-schema@^7.0.6":
"@types/json-schema@*", "@types/json-schema@^7.0.6":
version "7.0.
6
"
version "7.0.
7
"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.
6.tgz#f4c7ec43e81b319a9815115031709f26987891f0
"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.
7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad
"
integrity sha512-
3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw
==
integrity sha512-
cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA
==
"@types/node@*":
"@types/node@*":
version "14.14.2
1
"
version "14.14.2
2
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.2
1.tgz#d934aacc22424fe9622ebf6857370c052eae464e
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.2
2.tgz#0d29f382472c4ccf3bd96ff0ce47daf5b7b84b18
"
integrity sha512-
cHYfKsnwllYhjOzuC5q1VpguABBeecUp24yFluHpn/BQaVxB1CuQ1FSRZCzrPxrkIfWISXV2LbeoBthLWg0+0A
==
integrity sha512-
g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw
==
"@webassemblyjs/ast@1.11.0":
"@webassemblyjs/ast@1.11.0":
version "1.11.0"
version "1.11.0"
...
@@ -170,9 +165,9 @@
...
@@ -170,9 +165,9 @@
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
acorn@^8.0.4:
acorn@^8.0.4:
version "8.0.
4
"
version "8.0.
5
"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.0.
4.tgz#7a3ae4191466a6984eee0fe3407a4f3aa9db8354
"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.0.
5.tgz#a3bfb872a74a6a7f661bc81b9849d9cac12601b7
"
integrity sha512-
XNP0PqF1XD19ZlLKvB7cMmnZswW4C/03pRHgirB30uSJTaS3A3V1/P4sS3HPvFmjoriPCJQs+JDSbm4bL1TxGQ
==
integrity sha512-
v+DieK/HJkJOpFBETDJioequtc3PfxsWMaxIdIwujtF7FEV/MAyDQLlm6/zPvr7Mix07mLh6ccVwIsloceodlg
==
ajv-keywords@^3.5.2:
ajv-keywords@^3.5.2:
version "3.5.2"
version "3.5.2"
...
@@ -228,9 +223,9 @@ commander@^2.20.0:
...
@@ -228,9 +223,9 @@ commander@^2.20.0:
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
electron-to-chromium@^1.3.634:
electron-to-chromium@^1.3.634:
version "1.3.64
1
"
version "1.3.64
5
"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.64
1.tgz#03f14efd70a7971eff2efc947b3c1d0f717c82b9
"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.64
5.tgz#c0b269ae2ecece5aedc02dd4586397d8096affb1
"
integrity sha512-
b0DLhsHSHESC1I+Nx6n4w4Lr61chMd3m/av1rZQhS2IXTzaS5BMM5N+ldWdMIlni9CITMRM09m8He4+YV/92TA
==
integrity sha512-
T7mYop3aDpRHIQaUYcmzmh6j9MAe560n6ukqjJMbVC6bVTau7dSpvB18bcsBPPtOSe10cKxhJFtlbEzLa0LL1g
==
enhanced-resolve@^5.7.0:
enhanced-resolve@^5.7.0:
version "5.7.0"
version "5.7.0"
...
@@ -515,12 +510,12 @@ watchpack@^2.0.0:
...
@@ -515,12 +510,12 @@ watchpack@^2.0.0:
source-map "^0.6.1"
source-map "^0.6.1"
"webpack5@npm:webpack@5":
"webpack5@npm:webpack@5":
version "5.1
6
.0"
version "5.1
8
.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.1
6.0.tgz#796e093c2d92c229f013aefefde82b50c0572570
"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.1
8.0.tgz#bbcf13094aa0da0534d513f27d7ee72d74e499c6
"
integrity sha512-
QOkctcjYfEGxcYg4AzPJafyAQ7ANc266/URkX881uFA7b2k31E0Dmpy1ExfppHOTp1kHDTsRh9sXojVUvgPF0g
==
integrity sha512-
RmiP/iy6ROvVe/S+u0TrvL/oOmvP+2+Bs8MWjvBwwY/j82Q51XJyDJ75m0QAGntL1Wx6B//Xc0+4VPP/hlNHmw
==
dependencies:
dependencies:
"@types/eslint-scope" "^3.7.0"
"@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.4
5
"
"@types/estree" "^0.0.4
6
"
"@webassemblyjs/ast" "1.11.0"
"@webassemblyjs/ast" "1.11.0"
"@webassemblyjs/wasm-edit" "1.11.0"
"@webassemblyjs/wasm-edit" "1.11.0"
"@webassemblyjs/wasm-parser" "1.11.0"
"@webassemblyjs/wasm-parser" "1.11.0"
...
...
packages/next/compiled/webpack/bundle5.js
View file @
b785fbc5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
packages/next/compiled/webpack/lazy-compilation-node.js
0 → 100644
View file @
b785fbc5
module
.
exports
=
/******/
(
function
()
{
// webpackBootstrap
/******/
"use strict"
;
/******/
var
__webpack_modules__
=
({
/***/
887
:
/***/
(
function
(
__unused_webpack_module
,
exports
,
__nccwpck_require__
)
{
var
__resourceQuery
=
""
;
/* global __resourceQuery */
var
urlBase
=
decodeURIComponent
(
__resourceQuery
.
slice
(
1
));
exports
.
keepAlive
=
function
(
options
)
{
var
data
=
options
.
data
;
var
onError
=
options
.
onError
;
var
active
=
options
.
active
;
var
module
=
options
.
module
;
var
response
;
var
request
=
__nccwpck_require__
(
605
).
request
(
urlBase
+
data
,
{
agent
:
false
,
headers
:
{
accept
:
"text/event-stream"
}
},
function
(
res
)
{
response
=
res
;
response
.
on
(
"error"
,
errorHandler
);
if
(
!
active
&&
!
module
.
hot
)
{
console
.
log
(
"Hot Module Replacement is not enabled. Waiting for process restart..."
);
}
}
);
function
errorHandler
(
err
)
{
err
.
message
=
"Problem communicating active modules to the server: "
+
err
.
message
;
onError
(
err
);
}
request
.
on
(
"error"
,
errorHandler
);
request
.
end
();
return
function
()
{
response
.
destroy
();
};
};
/***/
}),
/***/
605
:
/***/
(
function
(
module
)
{
module
.
exports
=
require
(
"http"
);;
/***/
})
/******/
});
/************************************************************************/
/******/
// The module cache
/******/
var
__webpack_module_cache__
=
{};
/******/
/******/
// The require function
/******/
function
__nccwpck_require__
(
moduleId
)
{
/******/
// Check if module is in cache
/******/
if
(
__webpack_module_cache__
[
moduleId
])
{
/******/
return
__webpack_module_cache__
[
moduleId
].
exports
;
/******/
}
/******/
// Create a new module (and put it into the cache)
/******/
var
module
=
__webpack_module_cache__
[
moduleId
]
=
{
/******/
// no module.id needed
/******/
// no module.loaded needed
/******/
exports
:
{}
/******/
};
/******/
/******/
// Execute the module function
/******/
var
threw
=
true
;
/******/
try
{
/******/
__webpack_modules__
[
moduleId
](
module
,
module
.
exports
,
__nccwpck_require__
);
/******/
threw
=
false
;
/******/
}
finally
{
/******/
if
(
threw
)
delete
__webpack_module_cache__
[
moduleId
];
/******/
}
/******/
/******/
// Return the exports of the module
/******/
return
module
.
exports
;
/******/
}
/******/
/************************************************************************/
/******/
/* webpack/runtime/compat */
/******/
/******/
__nccwpck_require__
.
ab
=
__dirname
+
"/"
;
/************************************************************************/
/******/
// module exports must be returned from runtime so entry inlining is disabled
/******/
// startup
/******/
// Load entry module and return exports
/******/
return
__nccwpck_require__
(
887
);
/******/
})()
;
\ No newline at end of file
packages/next/compiled/webpack/lazy-compilation-web.js
0 → 100644
View file @
b785fbc5
module
.
exports
=
/******/
(
function
()
{
// webpackBootstrap
/******/
"use strict"
;
/******/
var
__webpack_modules__
=
({
/***/
949
:
/***/
(
function
(
__unused_webpack_module
,
exports
)
{
var
__resourceQuery
=
""
;
/* global __resourceQuery */
if
(
typeof
EventSource
!==
"function"
)
{
throw
new
Error
(
"Environment doesn't support lazy compilation (requires EventSource)"
);
}
var
urlBase
=
decodeURIComponent
(
__resourceQuery
.
slice
(
1
));
var
activeEventSource
;
var
activeKeys
=
new
Map
();
var
errorHandlers
=
new
Set
();
var
updateEventSource
=
function
updateEventSource
()
{
if
(
activeEventSource
)
activeEventSource
.
close
();
if
(
activeKeys
.
size
)
{
activeEventSource
=
new
EventSource
(
urlBase
+
Array
.
from
(
activeKeys
.
keys
()).
join
(
"@"
)
);
activeEventSource
.
onerror
=
function
(
event
)
{
errorHandlers
.
forEach
(
function
(
onError
)
{
onError
(
new
Error
(
"Problem communicating active modules to the server: "
+
event
.
message
+
" "
+
event
.
filename
+
":"
+
event
.
lineno
+
":"
+
event
.
colno
+
" "
+
event
.
error
)
);
});
};
}
else
{
activeEventSource
=
undefined
;
}
};
exports
.
keepAlive
=
function
(
options
)
{
var
data
=
options
.
data
;
var
onError
=
options
.
onError
;
var
active
=
options
.
active
;
var
module
=
options
.
module
;
errorHandlers
.
add
(
onError
);
var
value
=
activeKeys
.
get
(
data
)
||
0
;
activeKeys
.
set
(
data
,
value
+
1
);
if
(
value
===
0
)
{
updateEventSource
();
}
if
(
!
active
&&
!
module
.
hot
)
{
console
.
log
(
"Hot Module Replacement is not enabled. Waiting for process restart..."
);
}
return
function
()
{
errorHandlers
.
delete
(
onError
);
setTimeout
(
function
()
{
var
value
=
activeKeys
.
get
(
data
);
if
(
value
===
1
)
{
activeKeys
.
delete
(
data
);
updateEventSource
();
}
else
{
activeKeys
.
set
(
data
,
value
-
1
);
}
},
1000
);
};
};
/***/
})
/******/
});
/************************************************************************/
/******/
// The module cache
/******/
var
__webpack_module_cache__
=
{};
/******/
/******/
// The require function
/******/
function
__nccwpck_require__
(
moduleId
)
{
/******/
// Check if module is in cache
/******/
if
(
__webpack_module_cache__
[
moduleId
])
{
/******/
return
__webpack_module_cache__
[
moduleId
].
exports
;
/******/
}
/******/
// Create a new module (and put it into the cache)
/******/
var
module
=
__webpack_module_cache__
[
moduleId
]
=
{
/******/
// no module.id needed
/******/
// no module.loaded needed
/******/
exports
:
{}
/******/
};
/******/
/******/
// Execute the module function
/******/
var
threw
=
true
;
/******/
try
{
/******/
__webpack_modules__
[
moduleId
](
module
,
module
.
exports
,
__nccwpck_require__
);
/******/
threw
=
false
;
/******/
}
finally
{
/******/
if
(
threw
)
delete
__webpack_module_cache__
[
moduleId
];
/******/
}
/******/
/******/
// Return the exports of the module
/******/
return
module
.
exports
;
/******/
}
/******/
/************************************************************************/
/******/
/* webpack/runtime/compat */
/******/
/******/
__nccwpck_require__
.
ab
=
__dirname
+
"/"
;
/************************************************************************/
/******/
// module exports must be returned from runtime so entry inlining is disabled
/******/
// startup
/******/
// Load entry module and return exports
/******/
return
__nccwpck_require__
(
949
);
/******/
})()
;
\ No newline at end of file
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