@unocss/transformer-compile-class 0.45.5 → 0.45.8

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.
package/dist/index.cjs CHANGED
@@ -29,6 +29,7 @@ function transformerCompileClass(options = {}) {
29
29
  body = known.join(" ");
30
30
  }
31
31
  if (body) {
32
+ body = body.split(/\s+/).sort().join(" ");
32
33
  const hash2 = hashFn(body);
33
34
  const className = `${classPrefix}${hash2}`;
34
35
  replacements.unshift(className);
package/dist/index.mjs CHANGED
@@ -27,6 +27,7 @@ function transformerCompileClass(options = {}) {
27
27
  body = known.join(" ");
28
28
  }
29
29
  if (body) {
30
+ body = body.split(/\s+/).sort().join(" ");
30
31
  const hash2 = hashFn(body);
31
32
  const className = `${classPrefix}${hash2}`;
32
33
  replacements.unshift(className);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/transformer-compile-class",
3
- "version": "0.45.5",
3
+ "version": "0.45.8",
4
4
  "description": "Compile group of classes into one class",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@unocss/core": "0.45.5"
35
+ "@unocss/core": "0.45.8"
36
36
  },
37
37
  "devDependencies": {
38
38
  "magic-string": "^0.26.2"