@backtickjs/jsx-solid 0.2.1 → 0.2.3
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/plugin.d.ts +3 -2
- package/dist/plugin.js +3 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +5 -5
- package/src/plugin.ts +3 -5
package/dist/plugin.d.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Solid's template and DOM code, importing from `solid-js/web`. Typed by its
|
|
4
4
|
* shape, which is the compiler's `Plugin`, so this package needn't depend on the
|
|
5
5
|
* compiler.
|
|
6
|
+
*
|
|
7
|
+
* Listed in `package.json`: `"backtick": { "plugins": ["@backtickjs/jsx-solid/plugin"] }`.
|
|
6
8
|
*/
|
|
7
|
-
export
|
|
9
|
+
export default function solid(): (code: string, id: string) => {
|
|
8
10
|
code: string;
|
|
9
11
|
map: string;
|
|
10
12
|
};
|
|
11
|
-
export default solid;
|
package/dist/plugin.js
CHANGED
|
@@ -5,8 +5,10 @@ import preset from "babel-preset-solid";
|
|
|
5
5
|
* Solid's template and DOM code, importing from `solid-js/web`. Typed by its
|
|
6
6
|
* shape, which is the compiler's `Plugin`, so this package needn't depend on the
|
|
7
7
|
* compiler.
|
|
8
|
+
*
|
|
9
|
+
* Listed in `package.json`: `"backtick": { "plugins": ["@backtickjs/jsx-solid/plugin"] }`.
|
|
8
10
|
*/
|
|
9
|
-
export function solid() {
|
|
11
|
+
export default function solid() {
|
|
10
12
|
return (code, id) => {
|
|
11
13
|
const result = transformSync(code, {
|
|
12
14
|
filename: id,
|
|
@@ -18,7 +20,4 @@ export function solid() {
|
|
|
18
20
|
return { code: result.code, map: JSON.stringify(result.map) };
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
// What a project names to compile its scripts for Solid, in its `package.json`:
|
|
22
|
-
// `"backtick": { "plugins": ["@backtickjs/jsx-solid/plugin"] }`.
|
|
23
|
-
export default solid;
|
|
24
23
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK;IAI3B,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;QAClB,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,EAAE;YACjC,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;SACrE,CAAE,CAAC;QACJ,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAK,EAAE,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IACjE,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtickjs/jsx-solid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Solid's JSX for Backtick: a JSX runtime for server components, and the compile plugin for scripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"backtick",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@babel/core": "^7.29.7",
|
|
50
|
-
"@backtickjs/core": "^0.2.
|
|
50
|
+
"@backtickjs/core": "^0.2.3",
|
|
51
51
|
"babel-preset-solid": "1.9.12"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"solid-js": "^1.9.14"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@backtickjs/prettier-plugin": "^0.2.
|
|
58
|
-
"@backtickjs/tsc": "^0.2.
|
|
59
|
-
"@backtickjs/tspatch-plugin": "^0.2.
|
|
57
|
+
"@backtickjs/prettier-plugin": "^0.2.3",
|
|
58
|
+
"@backtickjs/tsc": "^0.2.3",
|
|
59
|
+
"@backtickjs/tspatch-plugin": "^0.2.3",
|
|
60
60
|
"@types/babel__core": "^7.20.5",
|
|
61
61
|
"prettier": "^3.6.2",
|
|
62
62
|
"solid-js": "1.9.14",
|
package/src/plugin.ts
CHANGED
|
@@ -6,8 +6,10 @@ import preset from "babel-preset-solid";
|
|
|
6
6
|
* Solid's template and DOM code, importing from `solid-js/web`. Typed by its
|
|
7
7
|
* shape, which is the compiler's `Plugin`, so this package needn't depend on the
|
|
8
8
|
* compiler.
|
|
9
|
+
*
|
|
10
|
+
* Listed in `package.json`: `"backtick": { "plugins": ["@backtickjs/jsx-solid/plugin"] }`.
|
|
9
11
|
*/
|
|
10
|
-
export function solid(): (
|
|
12
|
+
export default function solid(): (
|
|
11
13
|
code: string,
|
|
12
14
|
id: string,
|
|
13
15
|
) => { code: string; map: string } {
|
|
@@ -22,7 +24,3 @@ export function solid(): (
|
|
|
22
24
|
return { code: result.code!, map: JSON.stringify(result.map) };
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
// What a project names to compile its scripts for Solid, in its `package.json`:
|
|
27
|
-
// `"backtick": { "plugins": ["@backtickjs/jsx-solid/plugin"] }`.
|
|
28
|
-
export default solid;
|