joshswan/gulp-merge-json

Start object is mutated

Closed this issue · 0 comments

The startObj option is unexpectedly mutated inside the plugin. The value of merged is initialized as let merged = options.startObj and then is reassigned during the merges, causing startObj to be mutated. The plugin should either clone startObj when creating the merged value or otherwise treat it as immutable.