UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

17 lines (15 loc) 538 B
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryPlugin"); 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.apply(new ExternalModuleFactoryPlugin(this.type, this.externals)); }.bind(this)); };