webpack 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Compiler.js
CHANGED
@@ -88,7 +88,7 @@ Watching.prototype._done = function(err, compilation) {
|
|
88
88
|
this.running = false;
|
89
89
|
if(this.invalid) return this._go();
|
90
90
|
|
91
|
-
var stats = this._getStats(compilation);
|
91
|
+
var stats = compilation ? this._getStats(compilation) : null;
|
92
92
|
if(err) {
|
93
93
|
this.compiler.applyPlugins("failed", err);
|
94
94
|
this.handler(err, stats);
|
@@ -22,7 +22,7 @@ HarmonyCompatibilityDependency.Template = class HarmonyExportDependencyTemplate
|
|
22
22
|
if(usedExports && !Array.isArray(usedExports)) {
|
23
23
|
const exportName = dep.originModule.exportsArgument || "exports";
|
24
24
|
const content = `Object.defineProperty(${exportName}, \"__esModule\", { value: true });\n`;
|
25
|
-
source.insert(-
|
25
|
+
source.insert(-10, content);
|
26
26
|
}
|
27
27
|
}
|
28
28
|
};
|
@@ -45,7 +45,7 @@ module.exports = class HarmonyExportDependencyParserPlugin {
|
|
45
45
|
} else {
|
46
46
|
const immutable = statement.declaration && isImmutableStatement(statement.declaration);
|
47
47
|
const hoisted = statement.declaration && isHoistedStatement(statement.declaration);
|
48
|
-
dep = new HarmonyExportSpecifierDependency(parser.state.module, id, name, !immutable || hoisted ? -
|
48
|
+
dep = new HarmonyExportSpecifierDependency(parser.state.module, id, name, !immutable || hoisted ? -2 : (statement.range[1] + 0.5), immutable);
|
49
49
|
}
|
50
50
|
dep.loc = Object.create(statement.loc);
|
51
51
|
dep.loc.index = idx;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.1",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"dependencies": {
|