Skip to content

Commit

Permalink
feat(web): upgrade webpack plugin versions (#11191)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Jul 18, 2022
1 parent ee3eb3d commit d657f91
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 28 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@nrwl/web": "14.4.1",
"@parcel/watcher": "2.0.4",
"@phenomnomnominal/tsquery": "4.1.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@popperjs/core": "^2.9.2",
"@reduxjs/toolkit": "1.8.2",
"@rollup/plugin-babel": "^5.3.0",
Expand Down Expand Up @@ -124,9 +124,9 @@
"commitizen": "^4.0.3",
"confusing-browser-globals": "^1.0.9",
"conventional-changelog-cli": "^2.0.23",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin": "^10.2.4",
"core-js": "^3.6.5",
"css-minimizer-webpack-plugin": "^3.1.1",
"css-minimizer-webpack-plugin": "^3.4.1",
"cypress": "^9.1.0",
"cytoscape": "^3.18.2",
"cytoscape-dagre": "^2.4.0",
Expand All @@ -150,7 +150,7 @@
"file-loader": "^6.2.0",
"file-type": "^16.2.0",
"flat": "^5.0.2",
"fork-ts-checker-webpack-plugin": "6.2.10",
"fork-ts-checker-webpack-plugin": "7.2.13",
"fs-extra": "^10.1.0",
"html-webpack-plugin": "^3.2.0",
"http-server": "14.1.0",
Expand Down Expand Up @@ -231,7 +231,7 @@
"stylus-loader": "^6.2.0",
"tar-stream": "~2.2.0",
"tcp-port-used": "^1.0.2",
"terser-webpack-plugin": "^5.3.0",
"terser-webpack-plugin": "^5.3.3",
"tmp": "~0.2.1",
"tree-kill": "1.2.2",
"ts-jest": "27.1.4",
Expand All @@ -249,10 +249,10 @@
"url-loader": "^4.1.1",
"verdaccio": "^5.0.4",
"webpack": "^5.58.1",
"webpack-dev-server": "^4.3.1",
"webpack-dev-server": "^4.9.3",
"webpack-merge": "^5.8.0",
"webpack-node-externals": "^3.0.0",
"webpack-sources": "^3.0.2",
"webpack-sources": "^3.2.3",
"webpack-subresource-integrity": "^5.1.0",
"xstate": "^4.25.0",
"yargs": "^17.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"chalk": "4.1.0",
"dotenv": "~10.0.0",
"enhanced-resolve": "^5.8.3",
"fork-ts-checker-webpack-plugin": "6.2.10",
"fork-ts-checker-webpack-plugin": "7.2.13",
"rxjs": "^6.5.4",
"ts-loader": "^9.2.6",
"tsconfig-paths": "^3.9.0",
Expand Down
1 change: 0 additions & 1 deletion packages/cypress/src/plugins/preprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export function getWebpackConfig(config: any) {
plugins: [
new ForkTsCheckerWebpackPlugin({
typescript: {
enabled: true,
configFile: config.env.tsConfig,
},
}),
Expand Down
3 changes: 3 additions & 0 deletions packages/next/src/utils/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';

const { PHASE_PRODUCTION_BUILD } = importConstants();

jest.mock('@nrwl/web/src/utils/config', () => ({
createCopyPlugin: () => {},
}));
jest.mock('tsconfig-paths-webpack-plugin');
jest.mock('next/dist/server/config', () => ({
__esModule: true,
Expand Down
6 changes: 3 additions & 3 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
"@nrwl/linter": "file:../linter",
"@nrwl/workspace": "file:../workspace",
"chalk": "4.1.0",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin": "^10.2.4",
"dotenv": "~10.0.0",
"enhanced-resolve": "^5.8.3",
"fork-ts-checker-webpack-plugin": "6.2.10",
"fork-ts-checker-webpack-plugin": "7.2.13",
"fs-extra": "^10.1.0",
"glob": "7.1.4",
"license-webpack-plugin": "^4.0.2",
"rxjs": "^6.5.4",
"rxjs-for-await": "0.0.2",
"source-map-support": "0.5.19",
"terser-webpack-plugin": "^5.3.0",
"terser-webpack-plugin": "^5.3.3",
"tree-kill": "1.2.2",
"ts-loader": "^9.2.6",
"ts-node": "~10.8.0",
Expand Down
1 change: 0 additions & 1 deletion packages/node/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export function getBaseWebpackPartial(
// For watch mode, type errors should result in failure.
async: false,
typescript: {
enabled: true,
configFile: options.tsConfig,
memoryLimit: options.memoryLimit || 2018,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@nrwl/storybook": "file:../storybook",
"@nrwl/web": "file:../web",
"@nrwl/workspace": "file:../workspace",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@storybook/node-logger": "6.1.20",
"@svgr/webpack": "^6.1.2",
"chalk": "4.1.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@nrwl/js": "file:../js",
"@nrwl/linter": "file:../linter",
"@nrwl/workspace": "file:../workspace",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-image": "^2.1.0",
Expand All @@ -60,13 +60,13 @@
"caniuse-lite": "^1.0.30001251",
"chalk": "4.1.0",
"chokidar": "^3.5.1",
"copy-webpack-plugin": "^9.0.1",
"copy-webpack-plugin": "^10.2.4",
"core-js": "^3.6.5",
"css-loader": "^6.4.0",
"css-minimizer-webpack-plugin": "^3.1.1",
"css-minimizer-webpack-plugin": "^3.4.1",
"enhanced-resolve": "^5.8.3",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "6.2.10",
"fork-ts-checker-webpack-plugin": "7.2.13",
"fs-extra": "^10.1.0",
"http-server": "14.1.0",
"identity-obj-proxy": "3.0.0",
Expand Down Expand Up @@ -98,16 +98,16 @@
"style-loader": "^3.3.0",
"stylus": "^0.55.0",
"stylus-loader": "^6.2.0",
"terser-webpack-plugin": "^5.3.0",
"terser-webpack-plugin": "^5.3.3",
"ts-loader": "^9.2.6",
"ts-node": "~10.8.0",
"tsconfig-paths": "^3.9.0",
"tsconfig-paths-webpack-plugin": "3.5.2",
"tslib": "^2.3.0",
"webpack": "^5.58.1",
"webpack-dev-server": "^4.3.1",
"webpack-dev-server": "^4.9.3",
"webpack-merge": "^5.8.0",
"webpack-sources": "^3.0.2",
"webpack-sources": "^3.2.3",
"webpack-subresource-integrity": "^5.1.0"
}
}
1 change: 0 additions & 1 deletion packages/web/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export function getBaseWebpackPartial(
extraPlugins.push(
new ForkTsCheckerWebpackPlugin({
typescript: {
enabled: true,
configFile: builderOptions.tsConfig,
memoryLimit: builderOptions.memoryLimit || 2018,
},
Expand Down
94 changes: 88 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2978,6 +2978,14 @@
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"

"@jridgewell/trace-mapping@^0.3.7":
version "0.3.14"
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz#b231a081d8f66796e475ad588a1ef473112701ed"
integrity sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==
dependencies:
"@jridgewell/resolve-uri" "^3.0.3"
"@jridgewell/sourcemap-codec" "^1.4.10"

"@jridgewell/trace-mapping@^0.3.9":
version "0.3.13"
resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz#dcfe3e95f224c8fe97a87a5235defec999aa92ea"
Expand Down Expand Up @@ -4626,7 +4634,7 @@
schema-utils "^3.0.0"
source-map "^0.7.3"

"@pmmmwh/react-refresh-webpack-plugin@^0.5.3":
"@pmmmwh/react-refresh-webpack-plugin@^0.5.3", "@pmmmwh/react-refresh-webpack-plugin@^0.5.7":
version "0.5.7"
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.7.tgz#58f8217ba70069cc6a73f5d7e05e85b458c150e2"
integrity sha512-bcKCAzF0DV2IIROp9ZHkRJa6O4jy7NlnHdWL3GmcUxYWNjLXkK5kfELELwEfSP5hXPfVL/qOGMAROuMQb9GG8Q==
Expand Down Expand Up @@ -6430,7 +6438,7 @@
dependencies:
"@types/express" "*"

"@types/serve-static@*":
"@types/serve-static@*", "@types/serve-static@^1.13.10":
version "1.13.10"
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.10.tgz#f5e0ce8797d2d7cc5ebeda48a52c96c4fa47a8d9"
integrity sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==
Expand Down Expand Up @@ -9560,6 +9568,11 @@ connect-history-api-fallback@^1.6.0:
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
integrity sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==

connect-history-api-fallback@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8"
integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==

connect@^3.6.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8"
Expand Down Expand Up @@ -9847,7 +9860,7 @@ copy-to-clipboard@^3, copy-to-clipboard@^3.3.1:
dependencies:
toggle-selection "^1.0.6"

copy-webpack-plugin@10.2.4:
copy-webpack-plugin@10.2.4, copy-webpack-plugin@^10.2.4:
version "10.2.4"
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-10.2.4.tgz#6c854be3fdaae22025da34b9112ccf81c63308fe"
integrity sha512-xFVltahqlsRcyyJqQbDY6EYTtyQZF9rf+JPjwHObLdPFMEISqkFkr7mFoVOC6BfYS/dNThyoQKvziugm+OnwBg==
Expand Down Expand Up @@ -10131,7 +10144,7 @@ css-loader@^3.6.0:
schema-utils "^2.7.0"
semver "^6.3.0"

css-minimizer-webpack-plugin@*, css-minimizer-webpack-plugin@^3.1.1:
css-minimizer-webpack-plugin@*, css-minimizer-webpack-plugin@^3.1.1, css-minimizer-webpack-plugin@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz#ab78f781ced9181992fe7b6e4f3422e76429878f"
integrity sha512-1u6D71zeIfgngN2XNRJefc/hY7Ybsxd74Jm4qngIXyUEk7fss3VUzuHxLAq/R8NAba4QU9OUSaMZlbpRc7bM4Q==
Expand Down Expand Up @@ -12968,6 +12981,24 @@ fork-ts-checker-webpack-plugin@6.2.10:
semver "^7.3.2"
tapable "^1.0.0"

fork-ts-checker-webpack-plugin@7.2.13:
version "7.2.13"
resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-7.2.13.tgz#51ffd6a2f96f03ab64b92f8aedf305dbf3dee0f1"
integrity sha512-fR3WRkOb4bQdWB/y7ssDUlVdrclvwtyCUIHCfivAoYxq9dF7XfrDKbMdZIfwJ7hxIAqkYSGeU7lLJE6xrxIBdg==
dependencies:
"@babel/code-frame" "^7.16.7"
chalk "^4.1.2"
chokidar "^3.5.3"
cosmiconfig "^7.0.1"
deepmerge "^4.2.2"
fs-extra "^10.0.0"
memfs "^3.4.1"
minimatch "^3.0.4"
node-abort-controller "^3.0.1"
schema-utils "^3.1.1"
semver "^7.3.5"
tapable "^2.2.1"

fork-ts-checker-webpack-plugin@^4.1.6:
version "4.1.6"
resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-4.1.6.tgz#5055c703febcf37fa06405d400c122b905167fc5"
Expand Down Expand Up @@ -17864,6 +17895,11 @@ no-case@^3.0.4:
lower-case "^2.0.2"
tslib "^2.0.3"

node-abort-controller@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.0.1.tgz#f91fa50b1dee3f909afabb7e261b1e1d6b0cb74e"
integrity sha512-/ujIVxthRs+7q6hsdjHMaj8hRG9NuWmwrz+JdRwZ14jdFoKSkm+vDsCbF9PLpnSqjaWQJuTmVtcWHNLr+vrOFw==

node-addon-api@^3.0.0, node-addon-api@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"
Expand Down Expand Up @@ -21984,7 +22020,7 @@ socket.io@2.1.1:
socket.io-client "2.1.1"
socket.io-parser "~3.2.0"

sockjs@^0.3.21:
sockjs@^0.3.21, sockjs@^0.3.24:
version "0.3.24"
resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce"
integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==
Expand Down Expand Up @@ -22831,7 +22867,7 @@ tapable@^1.0.0, tapable@^1.1.3:
resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2"
integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==

tapable@^2.1.1, tapable@^2.2.0:
tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
Expand Down Expand Up @@ -22956,6 +22992,17 @@ terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.3.0:
source-map "^0.6.1"
terser "^5.7.2"

terser-webpack-plugin@^5.3.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.3.tgz#8033db876dd5875487213e87c627bca323e5ed90"
integrity sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==
dependencies:
"@jridgewell/trace-mapping" "^0.3.7"
jest-worker "^27.4.5"
schema-utils "^3.1.1"
serialize-javascript "^6.0.0"
terser "^5.7.2"

terser@5.13.1:
version "5.13.1"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.13.1.tgz#66332cdc5a01b04a224c9fad449fc1a18eaa1799"
Expand Down Expand Up @@ -24408,6 +24455,41 @@ webpack-dev-server@^4.3.1:
webpack-dev-middleware "^5.3.1"
ws "^8.4.2"

webpack-dev-server@^4.9.3:
version "4.9.3"
resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.9.3.tgz#2360a5d6d532acb5410a668417ad549ee3b8a3c9"
integrity sha512-3qp/eoboZG5/6QgiZ3llN8TUzkSpYg1Ko9khWX1h40MIEUNS2mDoIa8aXsPfskER+GbTvs/IJZ1QTBBhhuetSw==
dependencies:
"@types/bonjour" "^3.5.9"
"@types/connect-history-api-fallback" "^1.3.5"
"@types/express" "^4.17.13"
"@types/serve-index" "^1.9.1"
"@types/serve-static" "^1.13.10"
"@types/sockjs" "^0.3.33"
"@types/ws" "^8.5.1"
ansi-html-community "^0.0.8"
bonjour-service "^1.0.11"
chokidar "^3.5.3"
colorette "^2.0.10"
compression "^1.7.4"
connect-history-api-fallback "^2.0.0"
default-gateway "^6.0.3"
express "^4.17.3"
graceful-fs "^4.2.6"
html-entities "^2.3.2"
http-proxy-middleware "^2.0.3"
ipaddr.js "^2.0.1"
open "^8.0.9"
p-retry "^4.5.0"
rimraf "^3.0.2"
schema-utils "^4.0.0"
selfsigned "^2.0.1"
serve-index "^1.9.1"
sockjs "^0.3.24"
spdy "^4.0.2"
webpack-dev-middleware "^5.3.1"
ws "^8.4.2"

webpack-filter-warnings-plugin@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/webpack-filter-warnings-plugin/-/webpack-filter-warnings-plugin-1.2.1.tgz#dc61521cf4f9b4a336fbc89108a75ae1da951cdb"
Expand Down

1 comment on commit d657f91

@vercel
Copy link

@vercel vercel bot commented on d657f91 Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.