Skip to content

Commit a705802

Browse files
committed
allow to ignore a file by browser field
fixes webpack#186
1 parent f172af3 commit a705802

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/NormalModuleFactory.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ NormalModuleFactory.prototype.create = function(context, dependency, callback) {
5454
if(err) return callback(err);
5555
var loaders = results[0];
5656
resource = results[1];
57+
58+
if(resource === false) return callback(); // ignored
59+
5760
var userRequest = loaders.concat([resource]).join("!");
5861

5962
if(noPrePostAutoLoaders)

0 commit comments

Comments
 (0)