mirror of https://github.com/webpack/webpack.git
parent
b1d5ed3dd6
commit
a134fae430
|
@ -63,6 +63,9 @@ NodeStuffPlugin.prototype.apply = function(compiler) {
|
|||
return true;
|
||||
});
|
||||
compiler.parser.plugin("expression require.extensions", function(expr) {
|
||||
var dep = new ConstDependency("(void 0)", expr.range);
|
||||
dep.loc = expr.loc;
|
||||
this.state.current.addDependency(dep);
|
||||
if(!this.state.module) return;
|
||||
this.state.module.warnings.push(new UnsupportedFeatureWarning(this.state.module, "require.extensions is not supported by webpack. Use a loader instead."));
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue