webpack 2.4.0 → 2.4.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.
Files changed (2) hide show
  1. package/lib/Parser.js +4 -2
  2. package/package.json +1 -1
package/lib/Parser.js CHANGED
@@ -637,10 +637,12 @@ class Parser extends Tapable {
637
637
 
638
638
  walkFunctionDeclaration(statement) {
639
639
  this.inScope(statement.params, function() {
640
- if(statement.body.type === "BlockStatement")
640
+ if(statement.body.type === "BlockStatement") {
641
+ this.prewalkStatement(statement.body);
641
642
  this.walkStatement(statement.body);
642
- else
643
+ } else {
643
644
  this.walkExpression(statement.body);
645
+ }
644
646
  }.bind(this));
645
647
  }
646
648
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
- "version": "2.4.0",
3
+ "version": "2.4.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": {