From 9eca5e5c86c61846338497238e53d2457a894799 Mon Sep 17 00:00:00 2001 From: Takashi Tamura Date: Sun, 1 Aug 2021 12:59:17 +0900 Subject: [PATCH] Make worker-loader optional as peerDependencies. Close #13825. - https://docs.npmjs.com/cli/v7/configuring-npm/package-json#peerdependencies - https://github.blog/2020-10-13-presenting-v7-0-0-of-the-npm-cli/ - https://docs.npmjs.com/cli/v7/configuring-npm/package-json#peerdependenciesmeta Update worker-loader to v3.0.8. --- gulpfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0410136fe729d..bfee40263ad0d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2018,7 +2018,12 @@ function packageBowerJson() { bugs: DIST_BUGS_URL, license: DIST_LICENSE, peerDependencies: { - "worker-loader": "^3.0.7", // Used in `external/dist/webpack.js`. + "worker-loader": "^3.0.8", // Used in `external/dist/webpack.js`. + }, + peerDependenciesMeta: { + "worker-loader": { + optional: true, + }, }, browser: { canvas: false,