bigbrother-webpack-plugin
Advanced tools
Comparing version 1.7.6 to 1.7.7
@@ -0,3 +1,4 @@ | ||
import { Compiler } from 'webpack'; | ||
import { IOptions, ITYPETOOL } from './typings'; | ||
import SatoriAdapter from './adapter/satori'; | ||
import { IOptions, ITYPETOOL } from './typings'; | ||
declare class BigBrotherWebpackPlugin implements IOptions { | ||
@@ -10,3 +11,3 @@ cwd: string; | ||
constructor(options: any); | ||
apply(compiler: any): void; | ||
apply(compiler: Compiler): void; | ||
report(stats: any): Promise<void>; | ||
@@ -13,0 +14,0 @@ simepleReport(stats: any): void; |
@@ -6,7 +6,7 @@ "use strict"; | ||
var uuid_1 = require("uuid"); | ||
var satori_1 = require("./adapter/satori"); | ||
var utils_1 = require("./utils"); | ||
var debug = require("debug"); | ||
var path_1 = require("path"); | ||
var fs_1 = require("fs"); | ||
var utils_1 = require("./utils"); | ||
var satori_1 = require("./adapter/satori"); | ||
var log = debug('bigbrother-webpack-plugin:BigBrotherWebpackPlugin'); | ||
@@ -32,10 +32,6 @@ var BigBrotherWebpackPlugin = /** @class */ (function () { | ||
if (compiler.hooks) { | ||
compiler.hooks.done.tapAsync('monitor', function (stats, callback) { | ||
compiler.hooks.done.tap('monitor', function (stats) { | ||
// 若有错误,不上传依赖树,需要延迟一秒(防止进程退出导致构建失败信息上报不了) | ||
if (stats && stats.hasErrors()) { | ||
_this.simepleReport(stats); | ||
setImmediate(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { | ||
callback(); | ||
return [2 /*return*/]; | ||
}); }); }); | ||
return; | ||
@@ -46,6 +42,2 @@ } | ||
: _this.simepleReport(stats); | ||
setImmediate(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) { | ||
callback(); | ||
return [2 /*return*/]; | ||
}); }); }); | ||
}); | ||
@@ -52,0 +44,0 @@ return; |
{ | ||
"name": "bigbrother-webpack-plugin", | ||
"version": "1.7.6", | ||
"version": "1.7.7", | ||
"description": "bigbrother client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
38435
813