We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e8daf commit a3f3ce0Copy full SHA for a3f3ce0
test/cases/loaders/issue-2299/loader/index.js
@@ -1,6 +1,5 @@
1
var path = require('path');
2
var async = require('async');
3
-var assign = require('object-assign');
4
module.exports = function(content) {
5
var cb = this.async();
6
var json = JSON.parse(content);
@@ -20,7 +19,12 @@ module.exports = function(content) {
20
19
}
21
// Combine all the results into one object and return it
22
cb(null, 'module.exports = ' + JSON.stringify(results.reduce(function(prev, result) {
23
- return assign({}, prev, result);
+ for (var key in result) {
+ if (result.hasOwnProperty(key)) {
24
+ prev[key] = result[key];
25
+ }
26
27
+ return prev;
28
}, json)));
29
30
);
0 commit comments