MCPcopy Index your code
hub / github.com/webpack/css-loader / stringifyRequest

Function stringifyRequest

src/utils.js:15–22  ·  view source on GitHub ↗
(loaderContext, request)

Source from the content-addressed store, hash-verified

13const WEBPACK_IGNORE_COMMENT_REGEXP = /webpackIgnore:(\s+)?(true|false)/;
14
15function stringifyRequest(loaderContext, request) {
16 return JSON.stringify(
17 loaderContext.utils.contextify(
18 loaderContext.context || loaderContext.rootContext,
19 request,
20 ),
21 );
22}
23
24// We can't use path.win32.isAbsolute because it also matches paths starting with a forward slash
25const IS_NATIVE_WIN32_PATH = /^[a-z]:[/\\]|^\\\\/i;

Callers 1

loaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected