@rsbuild/webpack 0.3.1 → 0.3.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Rspack } from '@rsbuild/shared';
|
|
2
|
-
import type
|
|
2
|
+
import { type InternalContext } from '@rsbuild/core/provider';
|
|
3
3
|
import type { WebpackConfig } from '../types';
|
|
4
4
|
import { type InitConfigsOptions } from './initConfigs';
|
|
5
5
|
export declare function createCompiler({ context, webpackConfigs, }: {
|
|
@@ -33,6 +33,7 @@ __export(createCompiler_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(createCompiler_exports);
|
|
35
35
|
var import_shared = require("@rsbuild/shared");
|
|
36
|
+
var import_provider = require("@rsbuild/core/provider");
|
|
36
37
|
var import_initConfigs = require("./initConfigs");
|
|
37
38
|
var import_devMiddleware = require("./devMiddleware");
|
|
38
39
|
async function createCompiler({
|
|
@@ -47,7 +48,7 @@ async function createCompiler({
|
|
|
47
48
|
const compiler = webpackConfigs.length === 1 ? webpack(webpackConfigs[0]) : webpack(webpackConfigs);
|
|
48
49
|
let isFirstCompile = true;
|
|
49
50
|
compiler.hooks.done.tap("rsbuild:done", async (stats) => {
|
|
50
|
-
const { message, level } = (0,
|
|
51
|
+
const { message, level } = (0, import_provider.formatStats)(stats);
|
|
51
52
|
if (level === "error") {
|
|
52
53
|
import_shared.logger.error(message);
|
|
53
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/webpack",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"homepage": "https://rsbuild.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"globby": "^11.1.0",
|
|
32
32
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
33
33
|
"mini-css-extract-plugin": "2.7.6",
|
|
34
|
-
"postcss": "8.4.
|
|
34
|
+
"postcss": "^8.4.33",
|
|
35
35
|
"terser-webpack-plugin": "5.3.9",
|
|
36
36
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
37
37
|
"webpack": "^5.89.0",
|
|
38
|
-
"@rsbuild/
|
|
39
|
-
"@rsbuild/
|
|
38
|
+
"@rsbuild/core": "0.3.3",
|
|
39
|
+
"@rsbuild/shared": "0.3.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "16.x",
|