diff options
Diffstat (limited to 'node_modules/postcss-discard-empty')
| -rw-r--r-- | node_modules/postcss-discard-empty/package.json | 4 | ||||
| -rw-r--r-- | node_modules/postcss-discard-empty/src/index.js | 2 | ||||
| -rw-r--r-- | node_modules/postcss-discard-empty/types/index.d.ts | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/node_modules/postcss-discard-empty/package.json b/node_modules/postcss-discard-empty/package.json index f372fc98..28a9589f 100644 --- a/node_modules/postcss-discard-empty/package.json +++ b/node_modules/postcss-discard-empty/package.json @@ -1,6 +1,6 @@ { "name": "postcss-discard-empty", - "version": "6.0.1", + "version": "6.0.3", "description": "Discard empty rules and values with PostCSS.", "main": "src/index.js", "types": "types/index.d.ts", @@ -33,7 +33,7 @@ "node": "^14 || ^16 || >=18.0" }, "devDependencies": { - "postcss": "^8.4.32" + "postcss": "^8.4.35" }, "peerDependencies": { "postcss": "^8.4.31" diff --git a/node_modules/postcss-discard-empty/src/index.js b/node_modules/postcss-discard-empty/src/index.js index 77f32494..b35df106 100644 --- a/node_modules/postcss-discard-empty/src/index.js +++ b/node_modules/postcss-discard-empty/src/index.js @@ -21,7 +21,7 @@ function discardAndReport(css, result) { if ( (type === 'decl' && !node.value && !node.prop.startsWith('--')) || (type === 'rule' && !node.selector) || - (sub && !sub.length) || + (sub && !sub.length && !(type === 'atrule' && node.name === 'layer')) || (type === 'atrule' && ((!sub && !node.params) || (!node.params && diff --git a/node_modules/postcss-discard-empty/types/index.d.ts b/node_modules/postcss-discard-empty/types/index.d.ts index 4443a311..e449e8b4 100644 --- a/node_modules/postcss-discard-empty/types/index.d.ts +++ b/node_modules/postcss-discard-empty/types/index.d.ts @@ -7,3 +7,4 @@ declare function pluginCreator(): import('postcss').Plugin; declare namespace pluginCreator { let postcss: true; } +//# sourceMappingURL=index.d.ts.map
\ No newline at end of file |
