@rsbuild/webpack 0.2.13 → 0.2.15
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.
- package/dist/core/webpackConfig.js +3 -1
- package/dist/plugins/css.js +1 -11
- package/package.json +5 -6
|
@@ -156,7 +156,9 @@ async function generateWebpackConfig({
|
|
|
156
156
|
// need a special rule merge or use bundlerChain as WebpackChain
|
|
157
157
|
bundlerChain
|
|
158
158
|
);
|
|
159
|
-
let webpackConfig =
|
|
159
|
+
let webpackConfig = (0, import_shared.chainToConfig)(
|
|
160
|
+
chain
|
|
161
|
+
);
|
|
160
162
|
webpackConfig = await modifyWebpackConfig(
|
|
161
163
|
context,
|
|
162
164
|
webpackConfig,
|
package/dist/plugins/css.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
var css_exports = {};
|
|
30
20
|
__export(css_exports, {
|
|
@@ -67,7 +57,7 @@ async function applyBaseCSSRule({
|
|
|
67
57
|
defaults: {},
|
|
68
58
|
options: config.tools.styleLoader
|
|
69
59
|
});
|
|
70
|
-
rule.use(CHAIN_ID.USE.STYLE).loader(
|
|
60
|
+
rule.use(CHAIN_ID.USE.STYLE).loader((0, import_shared.getSharedPkgCompiledPath)("style-loader")).options(styleLoaderOptions).end();
|
|
71
61
|
}
|
|
72
62
|
if (enableCSSModuleTS && cssLoaderOptions.modules) {
|
|
73
63
|
rule.use(CHAIN_ID.USE.CSS_MODULES_TS).loader(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/webpack",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"homepage": "https://rsbuild.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,18 +32,17 @@
|
|
|
32
32
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
33
33
|
"mini-css-extract-plugin": "2.7.6",
|
|
34
34
|
"postcss": "8.4.31",
|
|
35
|
-
"style-loader": "3.3.3",
|
|
36
35
|
"terser-webpack-plugin": "5.3.9",
|
|
37
36
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
38
37
|
"webpack": "^5.89.0",
|
|
39
|
-
"webpack-chain": "
|
|
40
|
-
"@rsbuild/
|
|
41
|
-
"@rsbuild/
|
|
38
|
+
"webpack-5-chain": "8.0.1",
|
|
39
|
+
"@rsbuild/shared": "0.2.15",
|
|
40
|
+
"@rsbuild/core": "0.2.15"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@types/node": "16.x",
|
|
45
44
|
"typescript": "^5.3.0",
|
|
46
|
-
"@rsbuild/test-helper": "0.2.
|
|
45
|
+
"@rsbuild/test-helper": "0.2.15"
|
|
47
46
|
},
|
|
48
47
|
"publishConfig": {
|
|
49
48
|
"access": "public",
|