tailwindcss 0.0.0-oxide-insiders.0439d44 → 0.0.0-oxide-insiders.d2a95a0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -895,14 +895,22 @@ function registerPlugins(plugins, context) {
|
|
|
895
895
|
prefix(context, "peer")
|
|
896
896
|
];
|
|
897
897
|
context.getClassOrder = function getClassOrder(classes) {
|
|
898
|
+
// Sort classes so they're ordered in a deterministic manner
|
|
899
|
+
let sorted = [
|
|
900
|
+
...classes
|
|
901
|
+
].sort((a, z)=>{
|
|
902
|
+
if (a === z) return 0;
|
|
903
|
+
if (a < z) return -1;
|
|
904
|
+
return 1;
|
|
905
|
+
});
|
|
898
906
|
// Non-util classes won't be generated, so we default them to null
|
|
899
|
-
let sortedClassNames = new Map(
|
|
907
|
+
let sortedClassNames = new Map(sorted.map((className)=>[
|
|
900
908
|
className,
|
|
901
909
|
null
|
|
902
910
|
]));
|
|
903
911
|
// Sort all classes in order
|
|
904
912
|
// Non-tailwind classes won't be generated and will be left as `null`
|
|
905
|
-
let rules = (0, _generateRules.generateRules)(new Set(
|
|
913
|
+
let rules = (0, _generateRules.generateRules)(new Set(sorted), context);
|
|
906
914
|
rules = context.offsets.sort(rules);
|
|
907
915
|
let idx = BigInt(parasiteUtilities.length);
|
|
908
916
|
for (const [, rule] of rules){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "0.0.0-oxide-insiders.
|
|
3
|
+
"version": "0.0.0-oxide-insiders.d2a95a0",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"eslint": "^8.34.0",
|
|
60
60
|
"eslint-config-prettier": "^8.6.0",
|
|
61
61
|
"eslint-plugin-prettier": "^4.2.1",
|
|
62
|
-
"jest": "^29.4.
|
|
63
|
-
"jest-diff": "^29.4.
|
|
62
|
+
"jest": "^29.4.3",
|
|
63
|
+
"jest-diff": "^29.4.3",
|
|
64
64
|
"prettier": "^2.8.4",
|
|
65
65
|
"rimraf": "^4.1.2",
|
|
66
66
|
"source-map-js": "^1.0.2",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"postcss": "^8.0.9"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@tailwindcss/oxide": "0.0.0-oxide-insiders.
|
|
73
|
+
"@tailwindcss/oxide": "0.0.0-oxide-insiders.d2a95a0",
|
|
74
74
|
"arg": "^5.0.2",
|
|
75
75
|
"browserslist": "^4.21.5",
|
|
76
76
|
"chokidar": "^3.5.3",
|
|
@@ -931,12 +931,19 @@ function registerPlugins(plugins, context) {
|
|
|
931
931
|
prefix(context, 'peer'),
|
|
932
932
|
]
|
|
933
933
|
context.getClassOrder = function getClassOrder(classes) {
|
|
934
|
+
// Sort classes so they're ordered in a deterministic manner
|
|
935
|
+
let sorted = [...classes].sort((a, z) => {
|
|
936
|
+
if (a === z) return 0
|
|
937
|
+
if (a < z) return -1
|
|
938
|
+
return 1
|
|
939
|
+
})
|
|
940
|
+
|
|
934
941
|
// Non-util classes won't be generated, so we default them to null
|
|
935
|
-
let sortedClassNames = new Map(
|
|
942
|
+
let sortedClassNames = new Map(sorted.map((className) => [className, null]))
|
|
936
943
|
|
|
937
944
|
// Sort all classes in order
|
|
938
945
|
// Non-tailwind classes won't be generated and will be left as `null`
|
|
939
|
-
let rules = generateRules(new Set(
|
|
946
|
+
let rules = generateRules(new Set(sorted), context)
|
|
940
947
|
rules = context.offsets.sort(rules)
|
|
941
948
|
|
|
942
949
|
let idx = BigInt(parasiteUtilities.length)
|