@unocss/transformer-attributify-jsx 66.6.6 → 66.6.7
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.mjs +1 -6
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { toArray } from "@unocss/core";
|
|
2
2
|
import { parseSync } from "oxc-parser";
|
|
3
3
|
import { walk } from "oxc-walker";
|
|
4
|
-
|
|
5
4
|
//#region ../../virtual-shared/integration/src/env.ts
|
|
6
5
|
function getEnvFlags() {
|
|
7
6
|
const isNode = typeof process !== "undefined" && process.stdout;
|
|
@@ -11,7 +10,6 @@ function getEnvFlags() {
|
|
|
11
10
|
isESLint: isNode && !!process.env.ESLINT
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
14
|
//#region src/resolver/oxc.ts
|
|
17
15
|
async function attributifyJsxOxcResolver(params) {
|
|
@@ -31,7 +29,6 @@ async function attributifyJsxOxcResolver(params) {
|
|
|
31
29
|
} });
|
|
32
30
|
await Promise.all(tasks);
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
//#endregion
|
|
36
33
|
//#region src/resolver/regex.ts
|
|
37
34
|
const elementRE = /<([^/?<>0-9$_!][^\s>]*)\s+((?:"[^"]*"|'[^"]*'|(\{[^}]*\})|[^{>])+)>/g;
|
|
@@ -72,7 +69,6 @@ async function attributifyJsxRegexResolver(params) {
|
|
|
72
69
|
}
|
|
73
70
|
await Promise.all(tasks);
|
|
74
71
|
}
|
|
75
|
-
|
|
76
72
|
//#endregion
|
|
77
73
|
//#region src/index.ts
|
|
78
74
|
function createFilter(include, exclude) {
|
|
@@ -114,6 +110,5 @@ function transformerAttributifyJsx(options = {}) {
|
|
|
114
110
|
}
|
|
115
111
|
};
|
|
116
112
|
}
|
|
117
|
-
|
|
118
113
|
//#endregion
|
|
119
|
-
export { transformerAttributifyJsx as default };
|
|
114
|
+
export { transformerAttributifyJsx as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-attributify-jsx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.7",
|
|
5
5
|
"description": "Support valueless attributify in JSX/TSX.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"oxc-parser": "^0.115.0",
|
|
33
33
|
"oxc-walker": "^0.7.0",
|
|
34
|
-
"@unocss/core": "66.6.
|
|
34
|
+
"@unocss/core": "66.6.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"magic-string": "^0.30.21"
|