Sha256: 79dec3cb1b1efb9ef23109d8e2bbff9e4210b2da04a57fc72075b8d4e89dd8b7
Contents?: true
Size: 553 Bytes
Versions: 62
Compression:
Stored size: 553 Bytes
Contents
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var ExternalModuleFactoryDecorator = require("./ExternalModuleFactoryDecorator"); function ExternalsPlugin(type, externals) { this.type = type; this.externals = externals; } module.exports = ExternalsPlugin; ExternalsPlugin.prototype.apply = function(compiler) { compiler.plugin("compile", function(params) { params.normalModuleFactory = new ExternalModuleFactoryDecorator(params.normalModuleFactory, this.type, this.externals); }.bind(this)); };
Version data entries
62 entries across 62 versions & 1 rubygems