MCPcopy
hub / github.com/webpack/webpack / applyComment

Method applyComment

lib/css/CssParser.js:1198–1204  ·  view source on GitHub ↗

* Apply a comment's pure-mode side effect: `ignorePending` for `cssmodules-pure-ignore`, or the file-level `noCheck` for `cssmodules-pure-no-check` before the first top-level rule. * @param {string} value comment body (without the surrounding delimiters)

(value)

Source from the content-addressed store, hash-verified

1196 * @param {string} value comment body (without the surrounding delimiters)
1197 */
1198 applyComment(value) {
1199 if (PURE_IGNORE_RE.test(value)) {
1200 this.ignorePending = true;
1201 } else if (PURE_NO_CHECK_RE.test(value) && !this.seenTopLevelRule) {
1202 this.noCheck = true;
1203 }
1204 }
1205 };
1206
1207 /** @typedef {{ value?: string, importName?: string, localName?: string, request?: string }} IcssDefinition */

Callers 1

parseMethod · 0.80

Calls 1

testMethod · 0.45

Tested by

no test coverage detected