How to use the enhanced-resolve.stringify function in enhanced-resolve

To help you get started, we’ve selected a few enhanced-resolve examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webpack / enhanced-require / lib / execLoaders.js View on Github external
}
						done = true;
						contents = [err];
						for(var i = 1; i < arguments.length; i++) {
							var arg = arguments[i];
							if(arg instanceof Buffer)
								contents.push(arg);
							else if(typeof arg === "string")
								contents.push(new Buffer(arg, "utf-8"));
							else
								contents.push(arg);
						}
						loaderFinished.apply(null, arguments);
					},
					loaderIndex: loaderCallObjects.length,
					currentLoaders: loaders.map(resolve.stringify.part),
					query: loaderCallObject.query,
					debug: options.debug,
					minimize: options.minimize,
					values: undefined,
					options: options,
					buffers: args
				};

				// add additional loader context params or functions
				if(options.loader) for(var key in options.loader)
					loaderContext[key] = options.loader[key];

				// add additional loader context params or functions
				if(loaderContextExtras) for(var key in loaderContextExtras)
					loaderContext[key] = loaderContextExtras[key];