| import bodyEmpty from './bodyEmpty.js'; |
| import htmlCombinatorCommentBody from './htmlCombinatorCommentBody.js'; |
| import htmlFirstChild from './htmlFirstChild.js'; |
| import important from './important.js'; |
| import leadingStar from './leadingStar.js'; |
| import leadingUnderscore from './leadingUnderscore.js'; |
| import mediaSlash0 from './mediaSlash0.js'; |
| import mediaSlash0Slash9 from './mediaSlash0Slash9.js'; |
| import mediaSlash9 from './mediaSlash9.js'; |
| import slash9 from './slash9.js'; |
| import starHtml from './starHtml.js'; |
| import trailingSlashComma from './trailingSlashComma.js'; |
| |
| const plugins = [ |
| bodyEmpty, |
| htmlCombinatorCommentBody, |
| htmlFirstChild, |
| important, |
| leadingStar, |
| leadingUnderscore, |
| mediaSlash0, |
| mediaSlash0Slash9, |
| mediaSlash9, |
| slash9, |
| starHtml, |
| trailingSlashComma, |
| ]; |
| |
| /** |
| * Detectors grouped by the PostCSS node types they accept. `detect()` uses |
| * this to avoid constructing detectors that cannot inspect the given node. |
| * |
| * @type {Record<string, (typeof plugins)[number][]>} |
| */ |
| export const pluginsByNodeType = { |
| atrule: [leadingStar, mediaSlash0, mediaSlash0Slash9, mediaSlash9], |
| decl: [important, leadingStar, leadingUnderscore, slash9], |
| rule: [ |
| bodyEmpty, |
| htmlCombinatorCommentBody, |
| htmlFirstChild, |
| starHtml, |
| trailingSlashComma, |
| ], |
| }; |
| |
| export default plugins; |