tailwindcss 0.0.0-oxide-insiders.371b6ea → 0.0.0-oxide-insiders.ed8ff92

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.
@@ -176,16 +176,14 @@ function expandTailwindAtRules(context) {
176
176
  // Generate the actual CSS
177
177
  let classCacheCount = context.classCache.size;
178
178
  env.DEBUG && console.time("Generate rules");
179
- // TODO: Sorting is _probably_ slow, but right now it can guarantee the same order. Eventually
180
- // we will be able to get rid of this.
181
179
  env.DEBUG && console.time("Sorting candidates");
182
- let sortedCandidates = typeof process !== "undefined" && process.env.JEST_WORKER_ID ? new Set([
180
+ let sortedCandidates = env.OXIDE ? candidates : new Set([
183
181
  ...candidates
184
182
  ].sort((a, z)=>{
185
183
  if (a === z) return 0;
186
184
  if (a < z) return -1;
187
185
  return 1;
188
- })) : candidates;
186
+ }));
189
187
  env.DEBUG && console.timeEnd("Sorting candidates");
190
188
  (0, _generateRules.generateRules)(sortedCandidates, context);
191
189
  env.DEBUG && console.timeEnd("Generate rules");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-oxide-insiders.371b6ea",
3
+ "version": "0.0.0-oxide-insiders.ed8ff92",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -69,7 +69,7 @@
69
69
  "postcss": "^8.0.9"
70
70
  },
71
71
  "dependencies": {
72
- "@tailwindcss/oxide": "0.0.0-oxide-insiders.371b6ea",
72
+ "@tailwindcss/oxide": "0.0.0-oxide-insiders.ed8ff92",
73
73
  "arg": "^5.0.2",
74
74
  "browserslist": "^4.21.4",
75
75
  "chokidar": "^3.5.3",
@@ -163,19 +163,16 @@ export default function expandTailwindAtRules(context) {
163
163
  let classCacheCount = context.classCache.size
164
164
 
165
165
  env.DEBUG && console.time('Generate rules')
166
- // TODO: Sorting is _probably_ slow, but right now it can guarantee the same order. Eventually
167
- // we will be able to get rid of this.
168
166
  env.DEBUG && console.time('Sorting candidates')
169
- let sortedCandidates =
170
- typeof process !== 'undefined' && process.env.JEST_WORKER_ID
171
- ? new Set(
172
- [...candidates].sort((a, z) => {
173
- if (a === z) return 0
174
- if (a < z) return -1
175
- return 1
176
- })
177
- )
178
- : candidates
167
+ let sortedCandidates = env.OXIDE
168
+ ? candidates
169
+ : new Set(
170
+ [...candidates].sort((a, z) => {
171
+ if (a === z) return 0
172
+ if (a < z) return -1
173
+ return 1
174
+ })
175
+ )
179
176
  env.DEBUG && console.timeEnd('Sorting candidates')
180
177
  generateRules(sortedCandidates, context)
181
178
  env.DEBUG && console.timeEnd('Generate rules')