@rspack/core
Advanced tools
Comparing version 0.0.0-4f29fdb1e5-20221108142507 to 0.0.0-9a4458fd17-20221109070840
@@ -222,4 +222,11 @@ "use strict"; | ||
let stats = new stats_1.Stats(rawStats); | ||
if (stats.hasErrors()) { | ||
console.log(stats.toString({ | ||
all: false, | ||
warnings: true, | ||
errors: true, | ||
...this.options.stats | ||
})); | ||
} | ||
// TODO: log stats string should move to cli | ||
console.log(stats.toString(this.options.stats)); | ||
console.log("build success, time cost", Date.now() - begin, "ms"); | ||
@@ -246,3 +253,10 @@ let pendingChangedFilepaths = new Set(); | ||
// TODO: log stats string should move to cli | ||
console.log(stats.toString(this.options.stats)); | ||
if (stats.hasErrors()) { | ||
console.log(stats.toString({ | ||
all: false, | ||
warnings: true, | ||
errors: true, | ||
...this.options.stats | ||
})); | ||
} | ||
isBuildFinished = true; | ||
@@ -249,0 +263,0 @@ const hasPending = Boolean(pendingChangedFilepaths.size); |
@@ -5,4 +5,7 @@ import * as binding from "@rspack/binding"; | ||
colors?: boolean; | ||
all?: boolean; | ||
warnings?: boolean; | ||
errors?: boolean; | ||
} | ||
export declare function resolveStatsOptions(options?: StatsOptions): ResolvedStatsOptions; | ||
//# sourceMappingURL=stats.d.ts.map |
{ | ||
"name": "@rspack/core", | ||
"version": "0.0.0-4f29fdb1e5-20221108142507", | ||
"version": "0.0.0-9a4458fd17-20221109070840", | ||
"main": "./dist/index.js", | ||
@@ -10,3 +10,3 @@ "types": "./dist/index.d.ts", | ||
"devDependencies": { | ||
"@rspack/core": "0.0.0-4f29fdb1e5-20221108142507", | ||
"@rspack/core": "0.0.0-9a4458fd17-20221109070840", | ||
"@swc/helpers": "^0.4.12", | ||
@@ -28,6 +28,6 @@ "@types/jest": "29.0.2", | ||
"dependencies": { | ||
"@rspack/binding": "0.0.0-4f29fdb1e5-20221108142507", | ||
"@rspack/dev-client": "0.0.0-4f29fdb1e5-20221108142507", | ||
"@rspack/plugin-less": "^0.0.0-4f29fdb1e5-20221108142507", | ||
"@rspack/plugin-postcss": "^0.0.0-4f29fdb1e5-20221108142507", | ||
"@rspack/binding": "0.0.0-9a4458fd17-20221109070840", | ||
"@rspack/dev-client": "0.0.0-9a4458fd17-20221109070840", | ||
"@rspack/plugin-less": "^0.0.0-9a4458fd17-20221109070840", | ||
"@rspack/plugin-postcss": "^0.0.0-9a4458fd17-20221109070840", | ||
"browserslist": "^4.21.3", | ||
@@ -34,0 +34,0 @@ "chokidar": "3.5.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
276402
4000
+ Added@rspack/binding@0.0.0-9a4458fd17-20221109070840(transitive)
+ Added@rspack/dev-client@0.0.0-9a4458fd17-20221109070840(transitive)
- Removed@rspack/binding@0.0.0-4f29fdb1e5-20221108142507(transitive)
- Removed@rspack/dev-client@0.0.0-4f29fdb1e5-20221108142507(transitive)
Updated@rspack/plugin-postcss@^0.0.0-9a4458fd17-20221109070840