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

Function getLocalIdent

test/modules-option.test.js:343–355  ·  view source on GitHub ↗
(loaderContext, localIdentName, localName, options)

Source from the content-addressed store, hash-verified

341 localIdentContext: "context",
342 localIdentHashSalt: "hash",
343 getLocalIdent(loaderContext, localIdentName, localName, options) {
344 expect(loaderContext).toBeDefined();
345 expect(typeof localIdentName).toBe("string");
346 expect(typeof localName).toBe("string");
347 expect(options).toBeDefined();
348
349 expect(options.regExp).toBe("regExp");
350 expect(options.context).toBe("context");
351 expect(options.hashSalt).toBe("hash");
352 expect(options.node).toBeDefined();
353
354 return "foo";
355 },
356 },
357 });
358 const stats = await compile(compiler);

Callers 1

generateScopedNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…