(atRule)
| 9 | } from "../utils"; |
| 10 | |
| 11 | function 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 | |
| 30 | function isIgnoredPrevNode(atRule) { |
| 31 | const prevNode = atRule.prev(); |