Skip to content

Commit d06d593

Browse files
author
tomaskallup
authored
Use Object.assign for better performance
1 parent 41f8f4b commit d06d593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(source, map) {
1515
var emitFile = !options.noEmit;
1616

1717
// Make sure to not modify options object directly
18-
var creatorOptions = JSON.parse(JSON.stringify(options));
18+
var creatorOptions = Object.assign({}, options);
1919
delete creatorOptions.noEmit;
2020

2121
var creator = new DtsCreator(creatorOptions);

0 commit comments

Comments
 (0)