Skip to content

Commit

Permalink
Merge pull request #16936 from webpack/chore-deps-update
Browse files Browse the repository at this point in the history
chore: deps update
  • Loading branch information
TheLarkInn committed Apr 11, 2023
2 parents 5695e98 + 0ca8ae8 commit 0e0dab0
Show file tree
Hide file tree
Showing 77 changed files with 2,102 additions and 1,832 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Expand Up @@ -90,6 +90,13 @@ module.exports = {
ecmaVersion: 5
}
},
{
files: ["tooling/**/*.js"],
env: { es6: true },
parserOptions: {
ecmaVersion: 2020
}
},
{
files: ["test/**/*.js"],
env: {
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
node-version: 17.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn --frozen-lockfile --ignore-engines
- uses: actions/cache@v3
with:
path: .eslintcache
Expand All @@ -42,14 +42,25 @@ jobs:
with:
node-version: 17.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn --frozen-lockfile --ignore-engines
- run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile
- run: yarn test:basic --ci
- uses: codecov/codecov-action@v3
with:
flags: basic
functionalities: gcov
validate-legacy-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x
cache: "yarn"
- run: node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
- run: yarn install --production --frozen-lockfile
unit:
runs-on: ubuntu-latest
steps:
Expand All @@ -59,7 +70,7 @@ jobs:
with:
node-version: 17.x
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn --frozen-lockfile --ignore-engines
- run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile
- uses: actions/cache@v3
Expand Down Expand Up @@ -98,7 +109,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn --frozen-lockfile
# Using `--ignore-engines` for Node.js 10 and 12
- run: yarn --frozen-lockfile --ignore-engines
- run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile
- uses: actions/cache@v3
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions .husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
key: yarn | $(Agent.OS) | yarn.lock
path: $(YARN_CACHE_FOLDER)
displayName: "Cache Yarn packages"
- script: yarn --frozen-lockfile
- script: yarn --frozen-lockfile --ignore-engines
displayName: "Install dependencies"
- script: yarn link --frozen-lockfile || true
displayName: "Link webpack"
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
- script: |
set -e
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-engines
yarn link --frozen-lockfile || true
yarn link webpack --frozen-lockfile
displayName: "Install dependencies"
Expand Down
7 changes: 6 additions & 1 deletion cspell.json
Expand Up @@ -5,6 +5,8 @@
"absolutify",
"acircular",
"amdmodule",
"analyse",
"analysed",
"asmjs",
"assemblyscript",
"asyncloader",
Expand Down Expand Up @@ -181,6 +183,7 @@
"preloaded",
"preloading",
"preparsed",
"preprocess",
"prettierrc",
"prewalking",
"prioritise",
Expand Down Expand Up @@ -294,6 +297,7 @@
"types.d.ts",
"**/**/*.snap",
"test/cases/json/weird-properties/globals.json",
"test/JavascriptParser.unittest.js",
"**/*.svg",
"*.log",
"**/*.wasm",
Expand All @@ -303,6 +307,7 @@
"test/cases/**",
"test/configCases/**",
"test/statsCases/**",
"test/fixtures/**"
"test/fixtures/**",
"test/memoryLimitCases/**"
]
}
34 changes: 17 additions & 17 deletions examples/aggressive-merging/README.md
Expand Up @@ -60,20 +60,20 @@ module.exports = {
## Unoptimized

```
asset pageA.bundle.js 8.91 KiB [emitted] (name: pageA)
asset pageB.bundle.js 8.91 KiB [emitted] (name: pageB)
asset pageC.bundle.js 8.91 KiB [emitted] (name: pageC)
asset pageA.bundle.js 8.9 KiB [emitted] (name: pageA)
asset pageB.bundle.js 8.9 KiB [emitted] (name: pageB)
asset pageC.bundle.js 8.9 KiB [emitted] (name: pageC)
asset 456.chunk.js 6.28 KiB [emitted]
asset 394.chunk.js 606 bytes [emitted]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageB.js 69 bytes [built] [code generated]
[used exports unknown]
entry ./pageB pageB
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageC pageC
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageC.js 68 bytes [built] [code generated]
[used exports unknown]
entry ./pageC pageC
Expand All @@ -89,9 +89,9 @@ chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered]
cjs self exports reference ./b.js 1:0-14
cjs require ./b ./pageB.js 2:8-22
cjs require ./b ./pageC.js 2:17-31
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageA.js 69 bytes [built] [code generated]
[used exports unknown]
entry ./pageA pageA
Expand All @@ -113,7 +113,7 @@ chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered]
cjs self exports reference ./common.js 1:0-14
amd require ./common ./pageA.js 1:0-3:2
amd require ./common ./pageB.js 1:0-3:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```

## Production mode
Expand All @@ -124,15 +124,15 @@ asset pageA.bundle.js 1.73 KiB [emitted] [minimized] (name: pageA)
asset pageB.bundle.js 1.73 KiB [emitted] [minimized] (name: pageB)
asset 456.chunk.js 155 bytes [emitted] [minimized]
asset 394.chunk.js 104 bytes [emitted] [minimized]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageB) pageB.bundle.js (pageB) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageB pageB
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageB.js 69 bytes [built] [code generated]
[no exports used]
entry ./pageB pageB
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageC) pageC.bundle.js (pageC) 68 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageC pageC
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageC.js 68 bytes [built] [code generated]
[no exports used]
entry ./pageC pageC
Expand All @@ -148,9 +148,9 @@ chunk (runtime: pageC) 394.chunk.js 42 bytes [rendered]
cjs self exports reference ./b.js 1:0-14
cjs require ./b ./pageB.js 2:8-22
cjs require ./b ./pageC.js 2:17-31
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.98 KiB (runtime) [entry] [rendered]
chunk (runtime: pageA) pageA.bundle.js (pageA) 69 bytes (javascript) 4.97 KiB (runtime) [entry] [rendered]
> ./pageA pageA
runtime modules 4.98 KiB 6 modules
runtime modules 4.97 KiB 6 modules
./pageA.js 69 bytes [built] [code generated]
[no exports used]
entry ./pageA pageA
Expand All @@ -172,5 +172,5 @@ chunk (runtime: pageA, pageB) 456.chunk.js 5.45 KiB [rendered]
cjs self exports reference ./common.js 1:0-14
amd require ./common ./pageA.js 1:0-3:2
amd require ./common ./pageB.js 1:0-3:2
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
2 changes: 1 addition & 1 deletion examples/asset-advanced/README.md
Expand Up @@ -196,5 +196,5 @@ chunk (runtime: main) output.js (main) 1.54 KiB (javascript) 274 bytes (runtime)
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
4 changes: 2 additions & 2 deletions examples/asset-simple/README.md
Expand Up @@ -68,7 +68,7 @@ module.exports = {
\*************************/
/*! default exports */
/*! exports [not provided] [no usage info] */
/*! runtime requirements: module, __webpack_require__.p, __webpack_require__.* */
/*! runtime requirements: __webpack_require__.p, module, __webpack_require__.* */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

module.exports = __webpack_require__.p + "images/89a353e9c515885abd8e.png";
Expand Down Expand Up @@ -217,5 +217,5 @@ chunk (runtime: main) output.js (main) 9.58 KiB (javascript) 14.6 KiB (asset) 30
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.51.1 compiled successfully
webpack 5.78.0 compiled successfully
```
48 changes: 38 additions & 10 deletions examples/build-http/README.md
Expand Up @@ -20,7 +20,12 @@ module.exports = {
// loggingDebug: /HttpUriPlugin/
// },
experiments: {
buildHttp: true
buildHttp: [
"https://cdn.esm.sh/",
"https://cdn.skypack.dev/",
"https://jspm.dev/",
/^https:\/\/unpkg\.com\/.+\?module$/
]
}
};
```
Expand All @@ -33,12 +38,35 @@ module.exports = {
asset output.js 82.6 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path https:// 30 KiB
modules by path https://jspm.dev/ 16.1 KiB
modules by path https://jspm.dev/*.0 6.04 KiB 5 modules
modules by path https://jspm.dev/npm:@jspm/ 9.67 KiB 3 modules
4 modules
modules by path https://cdn.esm.sh/ 6.15 KiB 7 modules
modules by path https://cdn.skypack.dev/ 7.46 KiB 6 modules
modules by path https://jspm.dev/ 16.1 KiB 12 modules
modules by path https://cdn.esm.sh/ 6.15 KiB
https://cdn.esm.sh/p-map 173 bytes [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.esm.sh/p-map ./example.js 2:0-45
harmony import specifier https://cdn.esm.sh/p-map ./example.js 6:12-17
https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js 1.18 KiB [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 2:0-67
harmony export imported specifier https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 2:0-67
harmony side effect evaluation https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 3:0-77
harmony export imported specifier https://cdn.esm.sh/v53/p-map@5.1.0/es2015/p-map.js https://cdn.esm.sh/p-map 3:0-77
+ 5 modules
modules by path https://cdn.skypack.dev/ 7.46 KiB
https://cdn.skypack.dev/p-map 757 bytes [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation https://cdn.skypack.dev/p-map ./example.js 1:0-50
harmony import specifier https://cdn.skypack.dev/p-map ./example.js 5:12-17
https://cdn.skypack.dev/-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js 2.29 KiB [built] [code generated]
[exports: default, pMapSkip]
[used exports unknown]
harmony side effect evaluation /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 15:0-97
harmony export imported specifier /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 15:0-97
harmony side effect evaluation /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 16:0-105
harmony export imported specifier /-/p-map@v5.1.0-7ixXvZxXPKKt9unR9LT0/dist=es2020,mode=imports/optimized/p-map.js https://cdn.skypack.dev/p-map 16:0-105
+ 4 modules
https://unpkg.com/p-map-series?module 263 bytes [built] [code generated]
[exports: default]
[used exports unknown]
Expand All @@ -48,17 +76,17 @@ modules by path https:// 30 KiB
[no exports]
[used exports unknown]
entry ./example.js main
webpack 5.53.0 compiled successfully
webpack 5.78.0 compiled successfully
```

## Production mode

```
asset output.js 12.5 KiB [emitted] [minimized] (name: main)
asset output.js 12.4 KiB [emitted] [minimized] (name: main)
orphan modules 30 KiB [orphan] 26 modules
./example.js + 25 modules 30.2 KiB [built] [code generated]
[no exports]
[no exports used]
entry ./example.js main
webpack 5.53.0 compiled successfully
webpack 5.78.0 compiled successfully
```

0 comments on commit 0e0dab0

Please sign in to comment.