@compiled/css
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -8,2 +8,3 @@ "use strict"; | ||
const postcss_1 = __importDefault(require("postcss")); | ||
const postcss_discard_duplicates_1 = __importDefault(require("postcss-discard-duplicates")); | ||
const merge_duplicate_at_rules_1 = require("./plugins/merge-duplicate-at-rules"); | ||
@@ -18,3 +19,7 @@ const sort_atomic_style_sheet_1 = require("./plugins/sort-atomic-style-sheet"); | ||
function sort(stylesheet) { | ||
const result = (0, postcss_1.default)([(0, merge_duplicate_at_rules_1.mergeDuplicateAtRules)(), (0, sort_atomic_style_sheet_1.sortAtomicStyleSheet)()]).process(stylesheet, { | ||
const result = (0, postcss_1.default)([ | ||
(0, postcss_discard_duplicates_1.default)(), | ||
(0, merge_duplicate_at_rules_1.mergeDuplicateAtRules)(), | ||
(0, sort_atomic_style_sheet_1.sortAtomicStyleSheet)(), | ||
]).process(stylesheet, { | ||
from: undefined, | ||
@@ -21,0 +26,0 @@ }); |
{ | ||
"name": "@compiled/css", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "A familiar and performant compile time CSS-in-JS library for React.", | ||
@@ -26,9 +26,10 @@ "homepage": "https://compiledcssinjs.com/docs/pkg-css", | ||
"dependencies": { | ||
"@compiled/utils": "^0.8.0", | ||
"@compiled/utils": "^0.9.0", | ||
"autoprefixer": "^10.4.14", | ||
"cssnano-preset-default": "^5.2.14", | ||
"postcss": "^8.4.21", | ||
"postcss": "^8.4.31", | ||
"postcss-discard-duplicates": "^6.0.0", | ||
"postcss-nested": "^5.0.6", | ||
"postcss-normalize-whitespace": "^5.1.1", | ||
"postcss-selector-parser": "^6.0.11", | ||
"postcss-selector-parser": "^6.0.13", | ||
"postcss-values-parser": "^6.0.2" | ||
@@ -35,0 +36,0 @@ }, |
import postcss from 'postcss'; | ||
import discardDuplicates from 'postcss-discard-duplicates'; | ||
@@ -13,3 +14,7 @@ import { mergeDuplicateAtRules } from './plugins/merge-duplicate-at-rules'; | ||
export function sort(stylesheet: string): string { | ||
const result = postcss([mergeDuplicateAtRules(), sortAtomicStyleSheet()]).process(stylesheet, { | ||
const result = postcss([ | ||
discardDuplicates(), | ||
mergeDuplicateAtRules(), | ||
sortAtomicStyleSheet(), | ||
]).process(stylesheet, { | ||
from: undefined, | ||
@@ -16,0 +21,0 @@ }); |
Sorry, the diff of this file is not supported yet
237382
6142
9
+ Added@compiled/utils@0.9.2(transitive)
+ Addedpostcss-discard-duplicates@6.0.3(transitive)
- Removed@compiled/utils@0.8.0(transitive)
Updated@compiled/utils@^0.9.0
Updatedpostcss@^8.4.31