Sha256: 9e0062842ff2969417a3750e6ca820ff7f633a6787b977a528648529d50a6c92

Contents?: true

Size: 591 Bytes

Versions: 62

Compression:

Stored size: 591 Bytes

Contents

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var AbstractPlugin = require("../AbstractPlugin");
var RequireIncludeDependency = require("./RequireIncludeDependency");

module.exports = AbstractPlugin.create({
	"call require.include": function(expr) {
		if(expr.arguments.length !== 1) return;
		var param = this.evaluateExpression(expr.arguments[0]);
		if(!param.isString()) return;
		var dep = new RequireIncludeDependency(param.string, expr.range);
		dep.loc = expr.loc;
		this.state.current.addDependency(dep);
		return true;
	}
});

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
smock-0.1.209 node_modules/webpack/lib/dependencies/RequireIncludeDependencyParserPlugin.js
smock-0.1.208 node_modules/webpack/lib/dependencies/RequireIncludeDependencyParserPlugin.js