From e2bf5f8675ee223fdc864909c7107e506573ed4b Mon Sep 17 00:00:00 2001 From: Chen-jj <798095202@qq.com> Date: Wed, 29 Mar 2023 13:55:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(webpack5):=20=E5=8D=87=E7=BA=A7=20resolve?= =?UTF-8?q?-url-loader=20=E5=88=B0=20v5=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要为了升级其依赖的 postcss 版本 # resolve-url-loader ## Version 5 **Features** * Update `postcss` and completely remove `rework` parser. **Breaking Changes** * Require `node@>=12`. * Support `webpack@>=4` (no longer tested for earlier versions). * The `engine` option has been removed. **Migrating** Remove the `engine` option if you are using it. --- packages/taro-webpack5-runner/package.json | 2 +- pnpm-lock.yaml | 23 ++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/packages/taro-webpack5-runner/package.json b/packages/taro-webpack5-runner/package.json index f2c77af2a146..01f6caad7b7c 100644 --- a/packages/taro-webpack5-runner/package.json +++ b/packages/taro-webpack5-runner/package.json @@ -80,7 +80,7 @@ "postcss-url": "^10.1.3", "regenerator-runtime": "0.11", "resolve": "^1.22.0", - "resolve-url-loader": "4.0.0", + "resolve-url-loader": "^5.0.0", "sass": "1.50.0", "sass-loader": "12.4.0", "sax": "1.2.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7776b108a602..ef7c1d3e29d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2276,7 +2276,7 @@ importers: postcss-url: ^10.1.3 regenerator-runtime: '0.11' resolve: ^1.22.0 - resolve-url-loader: 4.0.0 + resolve-url-loader: ^5.0.0 sass: 1.50.0 sass-loader: 12.4.0 sax: 1.2.4 @@ -2342,7 +2342,7 @@ importers: postcss-url: registry.npmjs.org/postcss-url/10.1.3_postcss@8.4.21 regenerator-runtime: registry.npmjs.org/regenerator-runtime/0.11.1 resolve: registry.npmjs.org/resolve/1.22.1 - resolve-url-loader: registry.npmjs.org/resolve-url-loader/4.0.0 + resolve-url-loader: registry.npmjs.org/resolve-url-loader/5.0.0 sass: registry.npmjs.org/sass/1.50.0 sass-loader: registry.npmjs.org/sass-loader/12.4.0_sass@1.50.0+webpack@5.69.0 sax: registry.npmjs.org/sax/1.2.4 @@ -31777,6 +31777,19 @@ packages: source-map: registry.npmjs.org/source-map/0.6.1 dev: false + registry.npmjs.org/resolve-url-loader/5.0.0: + resolution: {integrity: sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz} + name: resolve-url-loader + version: 5.0.0 + engines: {node: '>=12'} + dependencies: + adjust-sourcemap-loader: registry.npmjs.org/adjust-sourcemap-loader/4.0.0 + convert-source-map: registry.npmjs.org/convert-source-map/1.8.0 + loader-utils: registry.npmjs.org/loader-utils/2.0.2 + postcss: registry.npmjs.org/postcss/8.4.21 + source-map: registry.npmjs.org/source-map/0.6.1 + dev: false + registry.npmjs.org/resolve-url/0.2.1: resolution: {integrity: sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz} name: resolve-url @@ -34647,7 +34660,6 @@ packages: serialize-javascript: registry.npmjs.org/serialize-javascript/6.0.0 terser: registry.npmjs.org/terser/5.14.1 webpack: registry.npmjs.org/webpack/5.69.0_k3zzwfl4stqj3whko6kmspvmxm - dev: true registry.npmjs.org/terser-webpack-plugin/5.3.3_v3nag7joep3fhay4q6lv7p6we4: resolution: {integrity: sha512-Fx60G5HNYknNTNQnzQ1VePRuu89ZVYWfjRAeT5rITuCY/1b08s49e5kSQwHDirKZWuoKOBRFS98EUUoZ9kLEwQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.3.tgz} @@ -36560,7 +36572,7 @@ packages: mime-types: registry.npmjs.org/mime-types/2.1.35 range-parser: registry.npmjs.org/range-parser/1.2.1 schema-utils: registry.npmjs.org/schema-utils/4.0.0 - webpack: registry.npmjs.org/webpack/5.69.0_esbuild@0.14.47 + webpack: registry.npmjs.org/webpack/5.69.0_k3zzwfl4stqj3whko6kmspvmxm registry.npmjs.org/webpack-dev-server/3.11.3_webpack@4.46.0: resolution: {integrity: sha512-3x31rjbEQWKMNzacUZRE6wXvUFuGpH7vr0lIEbYpMAG9BOxi0928QU1BBswOAP3kg3H1O4hiS+sq4YyAn6ANnA==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-3.11.3.tgz} @@ -36657,7 +36669,7 @@ packages: sockjs: registry.npmjs.org/sockjs/0.3.24 spdy: registry.npmjs.org/spdy/4.0.2 strip-ansi: registry.npmjs.org/strip-ansi/7.0.1 - webpack: registry.npmjs.org/webpack/5.69.0_esbuild@0.14.47 + webpack: registry.npmjs.org/webpack/5.69.0_k3zzwfl4stqj3whko6kmspvmxm webpack-dev-middleware: registry.npmjs.org/webpack-dev-middleware/5.3.3_webpack@5.69.0 ws: registry.npmjs.org/ws/8.8.0 transitivePeerDependencies: @@ -36888,7 +36900,6 @@ packages: - '@swc/core' - esbuild - uglify-js - dev: true registry.npmjs.org/webpackbar/5.0.2_webpack@5.69.0: resolution: {integrity: sha512-BmFJo7veBDgQzfWXl/wwYXr/VFus0614qZ8i9znqcl9fnEdiVkdbi0TedLQ6xAK92HZHDJ0QmyQ0fmuZPAgCYQ==, registry: https://registry.yarnpkg.com/, tarball: https://registry.npmjs.org/webpackbar/-/webpackbar-5.0.2.tgz}