Skip to content

Commit a979874

Browse files
committed
updated deps, minor changes
1 parent ae79597 commit a979874

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

lib/Compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Author Tobias Koppers @sokra
44
*/
55
var path = require("path");
6-
var clone = require("clone");
76
var Tapable = require("tapable");
87

98
var Compilation = require("./Compilation");
@@ -333,7 +332,8 @@ Compiler.prototype.createChildCompiler = function(compilation, compilerName, out
333332
childCompiler.contextTimestamps = this.contextTimestamps;
334333
if(!this.records[compilerName]) this.records[compilerName] = [];
335334
this.records[compilerName].push(childCompiler.records = {});
336-
childCompiler.options = clone(this.options);
335+
childCompiler.options = Object.create(this.options);
336+
childCompiler.options.output = Object.create(childCompiler.options.output);
337337
for(var name in outputOptions) {
338338
childCompiler.options.output[name] = outputOptions[name];
339339
}

lib/EvalSourceMapDevToolModuleTemplatePlugin.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5-
var clone = require("clone");
6-
75
var RawSource = require("webpack-core/lib/RawSource");
86
var ModuleFilenameHelpers = require("./ModuleFilenameHelpers");
97

@@ -21,11 +19,16 @@ EvalSourceMapDevToolModuleTemplatePlugin.prototype.apply = function(moduleTempla
2119
return source.__EvalSourceMapDevTool_Data;
2220
var content = source.source();
2321

24-
// Clone the sourcemap to ensure that the mutations below do not persist.
25-
var sourceMap = clone(source.map());
22+
var sourceMap = source.map();
2623
if(!sourceMap) {
2724
return source;
2825
}
26+
27+
// Clone (flat) the sourcemap to ensure that the mutations below do not persist.
28+
sourceMap = Object.keys(sourceMap).reduce(function(obj, key) {
29+
obj[key] = sourceMap[key];
30+
return obj;
31+
}, {});
2932
var modules = sourceMap.sources.map(function(source) {
3033
var module = self.compilation.findModule(source);
3134
return module || source;

lib/node/NodeWatchFileSystem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ NodeWatchFileSystem.prototype.watch = function watch(files, dirs, missing, start
3636

3737
if(callbackUndelayed)
3838
this.watcher.once("change", callbackUndelayed);
39+
3940
this.watcher.once("aggregated", function(changes) {
4041
if(this.inputFileSystem && this.inputFileSystem.purge) {
4142
this.inputFileSystem.purge(changes);

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
}
2525
],
2626
"devDependencies": {
27-
"mocha": "~1.21.1",
28-
"should": "~4.0.4",
27+
"mocha": "~2.1.0",
28+
"should": "^4.6.0",
2929
"vm-browserify": "~0.0.0",
3030
"express": "~3.4.8",
3131
"webpack-dev-middleware": "^1.0.0",
3232
"worker-loader": "~0.5.0",
3333
"raw-loader": "~0.5.0",
3434
"json-loader": "~0.5.1",
35-
"jade-loader": "~0.6.1",
35+
"jade-loader": "~0.7.0",
3636
"coffee-loader": "~0.7.1",
3737
"css-loader": "~0.9.0",
38-
"less-loader": "~0.7.0",
38+
"less-loader": "^2.0.0",
3939
"style-loader": "~0.8.0",
4040
"script-loader": "~0.6.0",
4141
"bundle-loader": "~0.5.0",
42-
"file-loader": "~0.7.2",
42+
"file-loader": "~0.8.0",
4343
"url-loader": "~0.5.0",
4444
"val-loader": "~0.5.0",
4545
"i18n-webpack-plugin": "~0.2.0",

0 commit comments

Comments
 (0)