Add WarningsToErrorsPlugin to webpack to avoid missing build problems on CI (#9647)

This commit is contained in:
Daniel Tschinder 2019-03-07 15:44:36 -08:00 committed by GitHub
parent 7c909e822f
commit b2b96e0b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,7 @@
"through2": "^2.0.0",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0",
"warnings-to-errors-webpack-plugin": "^2.0.0",
"webpack": "^3.4.1",
"webpack-dependency-suite": "^2.4.4",
"webpack-stream": "^4.0.0"

View File

@ -20,6 +20,7 @@ const rename = require("gulp-rename");
const webpack = require("webpack");
const { RootMostResolvePlugin } = require("webpack-dependency-suite");
const DuplicatePackageCheckerPlugin = require("duplicate-package-checker-webpack-plugin");
const WarningsToErrorsPlugin = require("warnings-to-errors-webpack-plugin");
const webpackStream = require("webpack-stream");
const uglify = require("gulp-uglify");
@ -62,6 +63,7 @@ function webpackBuild(opts) {
libraryTarget: "umd",
},
plugins: [
new WarningsToErrorsPlugin(),
new DuplicatePackageCheckerPlugin({
exclude(instance) {
return instance.name === "semver";

View File

@ -9047,6 +9047,11 @@ walker@~1.0.5:
dependencies:
makeerror "1.0.x"
warnings-to-errors-webpack-plugin@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/warnings-to-errors-webpack-plugin/-/warnings-to-errors-webpack-plugin-2.0.0.tgz#1ce862fa845c77a3c21bb68c839efaa7ebbdb9fb"
integrity sha512-0Girb3F5xc5U1TpYMiLDcie5oB+Ko2EuujOYyS3aXpKS4Yp264WkIuJ+0vF8wnmkDkmZAOBxahBedEL0mLjHQA==
watch@~0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986"