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

Function isIgnoredAfterName

src/plugins/postcss-import-parser.js:11–28  ·  view source on GitHub ↗
(atRule)

Source from the content-addressed store, hash-verified

9} from "../utils";
10
11function isIgnoredAfterName(atRule) {
12 if (
13 atRule.raws &&
14 atRule.raws.afterName &&
15 atRule.raws.afterName.trim().length > 0
16 ) {
17 const lastCommentIndex = atRule.raws.afterName.lastIndexOf("/*");
18 const matched = atRule.raws.afterName
19 .slice(lastCommentIndex)
20 .match(WEBPACK_IGNORE_COMMENT_REGEXP);
21
22 if (matched && matched[2] === "true") {
23 return true;
24 }
25 }
26
27 return false;
28}
29
30function isIgnoredPrevNode(atRule) {
31 const prevNode = atRule.prev();

Callers 1

parseNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected