Skip to content

Commit e250b63

Browse files
authored
refactor: cleanup CompilerOutput (#1866)
* refactor: cleanup CompilerOutput
1 parent d73e8ad commit e250b63

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

packages/webpack-cli/lib/utils/Compiler.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ const webpack = packageExists('webpack') ? require('webpack') : undefined;
33
const logger = require('./logger');
44
const { writeFileSync } = require('fs');
55
const bailAndWatchWarning = require('./warnings/bailAndWatchWarning');
6-
const { CompilerOutput } = require('./CompilerOutput');
76

87
class Compiler {
98
constructor() {
10-
this.output = new CompilerOutput();
119
this.compilerOptions = {};
1210
}
1311
setUpHookForCompilation(compilation, outputOptions, options) {
@@ -37,8 +35,7 @@ class Compiler {
3735
}
3836

3937
generateOutput(outputOptions, stats) {
40-
this.output.generateRawOutput(stats, this.compilerOptions);
41-
process.stdout.write('\n');
38+
logger.raw(`${stats.toString(this.compilerOptions.stats)}\n`);
4239
if (outputOptions.watch) {
4340
logger.info('watching files for updates...');
4441
}

packages/webpack-cli/lib/utils/CompilerOutput.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)