diff --git a/plugins/RequireEnsureWithoutJsonp.js b/plugins/RequireEnsureWithoutJsonp.js index b3b38f5e336..c15af360e56 100644 --- a/plugins/RequireEnsureWithoutJsonp.js +++ b/plugins/RequireEnsureWithoutJsonp.js @@ -15,14 +15,7 @@ function RequireEnsureWithoutJsonp() {} RequireEnsureWithoutJsonp.prototype.apply = function(compiler) { compiler.plugin('compilation', function(compilation) { compilation.mainTemplate.plugin('require-ensure', function(_, chunk, hash) { - return ( -` -if(installedChunks[chunkId] === 0) - return callback.call(null, __webpack_require__); -else - console.error('webpack chunk not found and jsonp disabled'); -` - ).trim(); + return ''; }); }); };