Skip to content

Commit

Permalink
refactor: cleanup CompilerOutput (#1866)
Browse files Browse the repository at this point in the history
* refactor: cleanup CompilerOutput
  • Loading branch information
anshumanv committed Oct 5, 2020
1 parent d73e8ad commit e250b63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
5 changes: 1 addition & 4 deletions packages/webpack-cli/lib/utils/Compiler.js
Expand Up @@ -3,11 +3,9 @@ const webpack = packageExists('webpack') ? require('webpack') : undefined;
const logger = require('./logger');
const { writeFileSync } = require('fs');
const bailAndWatchWarning = require('./warnings/bailAndWatchWarning');
const { CompilerOutput } = require('./CompilerOutput');

class Compiler {
constructor() {
this.output = new CompilerOutput();
this.compilerOptions = {};
}
setUpHookForCompilation(compilation, outputOptions, options) {
Expand Down Expand Up @@ -37,8 +35,7 @@ class Compiler {
}

generateOutput(outputOptions, stats) {
this.output.generateRawOutput(stats, this.compilerOptions);
process.stdout.write('\n');
logger.raw(`${stats.toString(this.compilerOptions.stats)}\n`);
if (outputOptions.watch) {
logger.info('watching files for updates...');
}
Expand Down
32 changes: 0 additions & 32 deletions packages/webpack-cli/lib/utils/CompilerOutput.js

This file was deleted.

0 comments on commit e250b63

Please sign in to comment.