Sha256: c085b3230aebf0904fcdddaa1a53d25c3a769ad5cdcc3d77c74dcb8d47396c43
Contents?: true
Size: 527 Bytes
Versions: 8
Compression:
Stored size: 527 Bytes
Contents
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; var ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryPlugin"); class ExternalsPlugin { constructor(type, externals) { this.type = type; this.externals = externals; } apply(compiler) { compiler.plugin("compile", (params) => { params.normalModuleFactory.apply(new ExternalModuleFactoryPlugin(this.type, this.externals)); }); } } module.exports = ExternalsPlugin;
Version data entries
8 entries across 6 versions & 3 rubygems