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

Version Path
ilog-0.4.1 node_modules/webpack/lib/ExternalsPlugin.js
ilog-0.4.0 node_modules/webpack/lib/ExternalsPlugin.js
ilog-0.3.3 node_modules/webpack/lib/ExternalsPlugin.js
optimacms-0.4.3 spec/dummy/node_modules/webpack/lib/ExternalsPlugin.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/ExternalsPlugin.js
optimacms-0.4.2 spec/dummy/node_modules/webpack/lib/ExternalsPlugin.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/ExternalsPlugin.js
lanes-0.8.0 node_modules/webpack/lib/ExternalsPlugin.js