add default value to binding element

This commit is contained in:
mc-zone 2018-04-29 15:44:38 +08:00
parent 92a28df10a
commit 77b9ef571b
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ const WebpackError = require("./WebpackError");
const cutOffLoaderExecution = require("./ErrorHelpers").cutOffLoaderExecution;
class ModuleBuildError extends WebpackError {
constructor(module, err, { from } = {}) {
constructor(module, err, { from = null } = {}) {
super();
this.name = "ModuleBuildError";

View File

@ -8,7 +8,7 @@ const WebpackError = require("./WebpackError");
const cleanUp = require("./ErrorHelpers").cleanUp;
class ModuleError extends WebpackError {
constructor(module, err, { from } = {}) {
constructor(module, err, { from = null } = {}) {
super();
this.name = "ModuleError";

View File

@ -8,7 +8,7 @@ const WebpackError = require("./WebpackError");
const cleanUp = require("./ErrorHelpers").cleanUp;
class ModuleWarning extends WebpackError {
constructor(module, warning, { from } = {}) {
constructor(module, warning, { from = null } = {}) {
super();
this.name = "ModuleWarning";