Skip to content

Commit 21d349e

Browse files
vivcogitAnton Khmyrov
and
Anton Khmyrov
authoredMar 2, 2021
prevent the mutability of config (#34)
Co-authored-by: Anton Khmyrov <akhmyrov@yandex-team.ru>
1 parent e4d6f3e commit 21d349e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = function(source) {
5050
}
5151
}
5252

53-
var svgo = new Svgo(config);
53+
var svgo = new Svgo({ ...config });
5454
svgo.optimize(source, { path: this.resourcePath })
5555
.then(function(result) {
5656
callback(null, result.data);

0 commit comments

Comments
 (0)
Please sign in to comment.