@rsbuild/webpack 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,6 @@ var import_shared2 = require("../shared");
|
|
|
36
36
|
async function modifyWebpackChain(context, utils, chain) {
|
|
37
37
|
(0, import_shared.debug)("modify webpack chain");
|
|
38
38
|
const [modifiedChain] = await context.hooks.modifyWebpackChainHook.call(
|
|
39
|
-
// @ts-expect-error `chain` in the sig of modifyWebpackChainHook is `RspackChain`.
|
|
40
39
|
chain,
|
|
41
40
|
utils
|
|
42
41
|
);
|
|
@@ -156,7 +155,9 @@ async function generateWebpackConfig({
|
|
|
156
155
|
// need a special rule merge or use bundlerChain as WebpackChain
|
|
157
156
|
bundlerChain
|
|
158
157
|
);
|
|
159
|
-
let webpackConfig =
|
|
158
|
+
let webpackConfig = (0, import_shared.chainToConfig)(
|
|
159
|
+
chain
|
|
160
|
+
);
|
|
160
161
|
webpackConfig = await modifyWebpackConfig(
|
|
161
162
|
context,
|
|
162
163
|
webpackConfig,
|
package/dist/plugins/sass.js
CHANGED
|
@@ -59,7 +59,7 @@ function pluginSass() {
|
|
|
59
59
|
// postcss-loader, resolve-url-loader, sass-loader
|
|
60
60
|
importLoaders: 3
|
|
61
61
|
});
|
|
62
|
-
rule.use(utils.CHAIN_ID.USE.
|
|
62
|
+
rule.use(utils.CHAIN_ID.USE.RESOLVE_URL).loader((0, import_shared.getSharedPkgCompiledPath)("resolve-url-loader")).options({
|
|
63
63
|
join: await (0, import_shared.getResolveUrlJoinFn)(),
|
|
64
64
|
// 'resolve-url-loader' relies on 'adjust-sourcemap-loader',
|
|
65
65
|
// it has performance regression issues in some scenarios,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/webpack",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"homepage": "https://rsbuild.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,14 +35,13 @@
|
|
|
35
35
|
"terser-webpack-plugin": "5.3.9",
|
|
36
36
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
37
37
|
"webpack": "^5.89.0",
|
|
38
|
-
"
|
|
39
|
-
"@rsbuild/
|
|
40
|
-
"@rsbuild/shared": "0.2.14"
|
|
38
|
+
"@rsbuild/core": "0.2.16",
|
|
39
|
+
"@rsbuild/shared": "0.2.16"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/node": "16.x",
|
|
44
43
|
"typescript": "^5.3.0",
|
|
45
|
-
"@rsbuild/test-helper": "0.2.
|
|
44
|
+
"@rsbuild/test-helper": "0.2.16"
|
|
46
45
|
},
|
|
47
46
|
"publishConfig": {
|
|
48
47
|
"access": "public",
|