@rsbuild/webpack 0.4.8 → 0.4.9
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/plugins/output.js +3 -2
- package/package.json +5 -5
package/dist/plugins/output.js
CHANGED
|
@@ -39,18 +39,19 @@ const pluginOutput = () => ({
|
|
|
39
39
|
(0, import_shared.applyOutputPlugin)(api);
|
|
40
40
|
api.modifyBundlerChain(async (chain, { isProd, target, CHAIN_ID }) => {
|
|
41
41
|
const config = api.getNormalizedConfig();
|
|
42
|
-
const cssPath = (0, import_shared.getDistPath)(config, "css");
|
|
43
42
|
if ((0, import_shared.isUseCssExtract)(config, target)) {
|
|
44
43
|
const { default: MiniCssExtractPlugin } = await Promise.resolve().then(() => __toESM(require("mini-css-extract-plugin")));
|
|
45
44
|
const extractPluginOptions = (0, import_shared.mergeChainedOptions)({
|
|
46
45
|
defaults: {},
|
|
47
46
|
options: config.tools.cssExtract?.pluginOptions
|
|
48
47
|
});
|
|
48
|
+
const cssPath = (0, import_shared.getDistPath)(config, "css");
|
|
49
|
+
const cssAsyncPath = (0, import_shared.getDistPath)(config, "cssAsync");
|
|
49
50
|
const cssFilename = (0, import_shared.getFilename)(config, "css", isProd);
|
|
50
51
|
chain.plugin(CHAIN_ID.PLUGIN.MINI_CSS_EXTRACT).use(MiniCssExtractPlugin, [
|
|
51
52
|
{
|
|
52
53
|
filename: import_node_path.posix.join(cssPath, cssFilename),
|
|
53
|
-
chunkFilename: import_node_path.posix.join(
|
|
54
|
+
chunkFilename: import_node_path.posix.join(cssAsyncPath, cssFilename),
|
|
54
55
|
ignoreOrder: true,
|
|
55
56
|
...extractPluginOptions
|
|
56
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/webpack",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"homepage": "https://rsbuild.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"fast-glob": "^3.3.1",
|
|
31
31
|
"globby": "^11.1.0",
|
|
32
32
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.6.1",
|
|
33
|
-
"mini-css-extract-plugin": "2.8.
|
|
33
|
+
"mini-css-extract-plugin": "2.8.1",
|
|
34
34
|
"postcss": "^8.4.33",
|
|
35
35
|
"terser-webpack-plugin": "5.3.10",
|
|
36
36
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
37
37
|
"webpack": "^5.89.0",
|
|
38
|
-
"@rsbuild/core": "0.4.
|
|
39
|
-
"@rsbuild/shared": "0.4.
|
|
38
|
+
"@rsbuild/core": "0.4.9",
|
|
39
|
+
"@rsbuild/shared": "0.4.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "16.x",
|
|
43
43
|
"typescript": "^5.3.0",
|
|
44
|
-
"@scripts/test-helper": "0.4.
|
|
44
|
+
"@scripts/test-helper": "0.4.9"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public",
|