Skip to content

Commit 968f6a7

Browse files
Fix options spread for node v6
1 parent ac7b16c commit 968f6a7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
lerna-debug.log
3+
npm-debug.log

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ module.exports = class SpeedMeasurePlugin {
8181
return JSON.stringify(outputObj, null, 2);
8282
if (typeof this.options.outputFormat === "function")
8383
return this.options.outputFormat(outputObj);
84-
return getHumanOutput(outputObj, {
85-
...this.options,
86-
verbose: this.options.outputFormat === "humanVerbose",
87-
});
84+
return getHumanOutput(outputObj, Object.assign(
85+
{ verbose: this.options.outputFormat === "humanVerbose" },
86+
this.options)
87+
);
8888
}
8989

9090
addTimeEvent(category, event, eventType, data = {}) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "speed-measure-webpack-plugin",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Measure + analyse the speed of your webpack loaders and plugins",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)