@rspack/core
Advanced tools
Comparing version 0.0.0-20221108135816 to 0.0.0-1bce45e7c0-20221109113710
@@ -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); |
@@ -15,2 +15,3 @@ import type { Context, ResolvedContext } from "./context"; | ||
import { ResolvedStatsOptions, StatsOptions } from "./stats"; | ||
export declare type Configuration = RspackOptions; | ||
export interface RspackOptions { | ||
@@ -17,0 +18,0 @@ name?: string; |
@@ -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-20221108135816", | ||
"version": "0.0.0-1bce45e7c0-20221109113710", | ||
"main": "./dist/index.js", | ||
@@ -10,3 +10,3 @@ "types": "./dist/index.d.ts", | ||
"devDependencies": { | ||
"@rspack/core": "0.0.0-20221108135816", | ||
"@rspack/core": "0.0.0-1bce45e7c0-20221109113710", | ||
"@swc/helpers": "^0.4.12", | ||
@@ -28,6 +28,6 @@ "@types/jest": "29.0.2", | ||
"dependencies": { | ||
"@rspack/binding": "0.0.0-20221108135816", | ||
"@rspack/dev-client": "0.0.0-20221108135816", | ||
"@rspack/plugin-less": "^0.0.0-20221108135816", | ||
"@rspack/plugin-postcss": "^0.0.0-20221108135816", | ||
"@rspack/binding": "0.0.0-1bce45e7c0-20221109113710", | ||
"@rspack/dev-client": "0.0.0-1bce45e7c0-20221109113710", | ||
"@rspack/plugin-less": "^0.0.0-1bce45e7c0-20221109113710", | ||
"@rspack/plugin-postcss": "^0.0.0-1bce45e7c0-20221109113710", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
276485
4001
+ Added@rspack/binding@0.0.0-1bce45e7c0-20221109113710(transitive)
+ Added@rspack/dev-client@0.0.0-1bce45e7c0-20221109113710(transitive)
- Removed@rspack/binding@0.0.0-20221108135816(transitive)
- Removed@rspack/dev-client@0.0.0-20221108135816(transitive)
Updated@rspack/plugin-postcss@^0.0.0-1bce45e7c0-20221109113710