Skip to content

Commit edfc675

Browse files
committed
Errors and warnings stay in cache
1 parent f9ac3ed commit edfc675

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/Compilation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ Compilation.prototype.addModule = function(module) {
5757
cacheModule.disconnect();
5858
this._modules[identifier] = cacheModule;
5959
this.modules.push(cacheModule);
60+
cacheModule.errors.forEach(function(err) {
61+
this.errors.push(err);
62+
}, this);
63+
cacheModule.warnings.forEach(function(err) {
64+
this.warnings.push(err);
65+
}, this);
6066
return cacheModule;
6167
}
6268
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.9.0-beta37",
3+
"version": "0.9.0-beta38",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs/AMD/Labeled 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, jade, coffee, css, less, ... and your custom stuff.",
66
"dependencies": {

0 commit comments

Comments
 (0)