MCPcopy
hub / github.com/webpack/webpack / urlActive

Method urlActive

lib/css/CssParser.js:2181–2190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2179 * @returns {boolean} true when url() deps should be emitted
2180 */
2181 const urlActive = () => {
2182 if (!this.options.url || !currentStructural) return false;
2183 if (A.type(currentStructural) === NodeType.AtRule) {
2184 return (
2185 !equalsLowerCase(A.name(currentStructural), "import") ||
2186 currentUrlRecovery
2187 );
2188 }
2189 return true;
2190 };
2191
2192 /**
2193 * At-rules with a dedicated CSS-Modules handler, so the generic `local()`/`global()` value rewrite and dashed-ident scoping are off for them.

Callers

nothing calls this directly

Calls 3

equalsLowerCaseFunction · 0.85
nameMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected