Skip to content

Commit 5879483

Browse files
committed
fixed formating
1 parent 03ecbd5 commit 5879483

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

lib/BannerPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ function BannerPlugin(options) {
1414
if(arguments.length > 1)
1515
throw new Error("BannerPlugin only takes one argument (pass an options object)");
1616
if(typeof options === "string")
17-
options = { banner: options };
17+
options = {
18+
banner: options
19+
};
1820
this.options = options || {};
1921
this.banner = this.options.raw ? options.banner : wrapComment(options.banner);
2022
}

lib/EvalSourceMapDevToolPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ function EvalSourceMapDevToolPlugin(options) {
99
if(arguments.length > 1)
1010
throw new Error("EvalSourceMapDevToolPlugin only takes one argument (pass an options object)");
1111
if(typeof options === "string") {
12-
options = { append: options };
12+
options = {
13+
append: options
14+
};
1315
}
1416
if(!options) options = {};
1517
this.options = options;

lib/SourceMapDevToolPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ function SourceMapDevToolPlugin(options) {
1313
if(arguments.length > 1)
1414
throw new Error("SourceMapDevToolPlugin only takes one argument (pass an options object)");
1515
if(typeof options === "string") {
16-
options = { sourceMapFilename: options };
16+
options = {
17+
sourceMapFilename: options
18+
};
1719
}
1820
if(!options) options = {};
1921
this.sourceMapFilename = options.filename;

lib/optimize/CommonsChunkPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ function CommonsChunkPlugin(options) {
66
if(arguments.length > 1)
77
throw new Error("CommonsChunkPlugin only takes one argument (pass an options object)");
88
if(Array.isArray(options) || typeof options === "string") {
9-
options = { name: options };
9+
options = {
10+
name: options
11+
};
1012
}
1113
this.chunkNames = options.name || options.names;
1214
this.filenameTemplate = options.filename;

0 commit comments

Comments
 (0)