Code coverage report for lib\LoaderTargetPlugin.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (8 / 8)      Ignored: none     

All files » lib\ » LoaderTargetPlugin.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17        1 484   1 1 484 484 496 2715        
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
function LoaderTargetPlugin(target) {
	this.target = target;
}
module.exports = LoaderTargetPlugin;
LoaderTargetPlugin.prototype.apply = function(compiler) {
	var target = this.target;
	compiler.plugin("compilation", function(compilation) {
		compilation.plugin("normal-module-loader", function(loaderContext) {
			loaderContext.target = target;
		});
	});
};