@solidjs/babel-plugin 2.0.0-rc.2 → 2.0.0-rc.20
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +206 -0
- package/README.md +94 -13
- package/index.js +9735 -6729
- package/package.json +11 -5
- package/.turbo/turbo-test.log +0 -122
- package/.turbo/turbo-typecheck.log +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidjs/babel-plugin",
|
|
3
3
|
"description": "Babel compiler plugin for Solid templates",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.20",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -24,16 +24,22 @@
|
|
|
24
24
|
"@babel/plugin-syntax-jsx": "^7.18.6",
|
|
25
25
|
"@babel/types": "^7.20.7",
|
|
26
26
|
"html-entities": "2.3.3",
|
|
27
|
-
"parse5": "^7.1.2"
|
|
28
|
-
"validate-html-nesting": "^1.2.1"
|
|
27
|
+
"parse5": "^7.1.2"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"@babel/core": "^7.20.12"
|
|
30
|
+
"@babel/core": "^7.20.12 || ^8.0.0",
|
|
31
|
+
"@tsrx/core": "0.1.63"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"@tsrx/core": {
|
|
35
|
+
"optional": true
|
|
36
|
+
}
|
|
32
37
|
},
|
|
33
38
|
"devDependencies": {
|
|
34
39
|
"@babel/core": "^7.29.0",
|
|
35
|
-
"@solidjs/web": "workspace:*",
|
|
36
40
|
"@rollup/plugin-babel": "7.0.0",
|
|
41
|
+
"@solidjs/web": "workspace:*",
|
|
42
|
+
"@tsrx/core": "0.1.63",
|
|
37
43
|
"@types/babel__core": "^7.20.5",
|
|
38
44
|
"@types/babel__traverse": "^7.28.0"
|
|
39
45
|
}
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
$ pnpm run typecheck && pnpm run build && vitest run
|
|
2
|
-
$ tsc -p tsconfig.json --noEmit
|
|
3
|
-
$ rollup -c --bundleConfigAsCjs
|
|
4
|
-
[36m
|
|
5
|
-
[1msrc/index.ts[22m → [1mindex.js[22m...[39m
|
|
6
|
-
[1m[33m(!) Circular dependencies[39m[22m
|
|
7
|
-
src/shared/transform.ts -> src/dom/element.ts -> src/shared/transform.ts
|
|
8
|
-
src/shared/transform.ts -> src/ssr/element.ts -> src/shared/transform.ts
|
|
9
|
-
src/shared/transform.ts -> src/universal/element.ts -> src/shared/transform.ts
|
|
10
|
-
src/shared/transform.ts -> src/shared/component.ts -> src/shared/transform.ts
|
|
11
|
-
src/shared/transform.ts -> src/shared/fragment.ts -> src/shared/transform.ts
|
|
12
|
-
[32mcreated [1mindex.js[22m in [1m1.6s[22m[39m
|
|
13
|
-
|
|
14
|
-
RUN v4.1.6 /Users/ryancarniato/Development/solid/packages/babel-plugin
|
|
15
|
-
|
|
16
|
-
stdout | test/dom.spec.js > Convert JSX fixtures > attributeExpressions
|
|
17
|
-
|
|
18
|
-
SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
|
|
19
|
-
|
|
20
|
-
/Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_fixtures__/attributeExpressions/code.js
|
|
21
|
-
|
|
22
|
-
388 | }
|
|
23
|
-
389 |
|
|
24
|
-
> 390 | const template89 = <div _hk="should warn _hk is present on template" />;
|
|
25
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
26
|
-
391 |
|
|
27
|
-
392 | const template90 = <div style={{}} />;
|
|
28
|
-
393 |
|
|
29
|
-
|
|
30
|
-
stdout | test/dynamic-dom.spec.js > Convert JSX fixtures > attributeExpressions
|
|
31
|
-
|
|
32
|
-
SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
|
|
33
|
-
|
|
34
|
-
/Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_fixtures__/attributeExpressions/code.js
|
|
35
|
-
|
|
36
|
-
388 | }
|
|
37
|
-
389 |
|
|
38
|
-
> 390 | const template89 = <div _hk="should warn _hk is present on template" />;
|
|
39
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
40
|
-
391 |
|
|
41
|
-
392 | const template90 = <div style={{}} />;
|
|
42
|
-
393 |
|
|
43
|
-
|
|
44
|
-
✓ test/universal.spec.js (8 tests) 2008ms
|
|
45
|
-
✓ attributeExpressions 850ms
|
|
46
|
-
✓ components 324ms
|
|
47
|
-
✓ conditionalExpressions 433ms
|
|
48
|
-
✓ test/dynamic-universal.spec.js (8 tests) 1975ms
|
|
49
|
-
✓ attributeExpressions 883ms
|
|
50
|
-
✓ components 313ms
|
|
51
|
-
✓ conditionalExpressions 369ms
|
|
52
|
-
✓ test/ssr-hydratable.spec.js (13 tests) 2577ms
|
|
53
|
-
✓ SVG 719ms
|
|
54
|
-
✓ attributeExpressions 755ms
|
|
55
|
-
✓ conditionalExpressions 434ms
|
|
56
|
-
✓ test/dom.spec.js (16 tests) 2553ms
|
|
57
|
-
✓ SVG 668ms
|
|
58
|
-
✓ attributeExpressions 641ms
|
|
59
|
-
✓ conditionalExpressions 314ms
|
|
60
|
-
✓ test/dom-hydratable.spec.js (15 tests) 2646ms
|
|
61
|
-
✓ SVG 755ms
|
|
62
|
-
✓ attributeExpressions 697ms
|
|
63
|
-
✓ components 380ms
|
|
64
|
-
✓ conditionalExpressions 328ms
|
|
65
|
-
✓ test/ssr.spec.js (13 tests) 2608ms
|
|
66
|
-
✓ SVG 640ms
|
|
67
|
-
✓ attributeExpressions 697ms
|
|
68
|
-
✓ components 330ms
|
|
69
|
-
✓ conditionalExpressions 387ms
|
|
70
|
-
✓ test/dynamic.spec.js (12 tests) 2745ms
|
|
71
|
-
✓ SVG 738ms
|
|
72
|
-
✓ attributeExpressions 759ms
|
|
73
|
-
✓ components 353ms
|
|
74
|
-
✓ conditionalExpressions 369ms
|
|
75
|
-
✓ test/dynamic-hydratable.spec.js (15 tests) 2765ms
|
|
76
|
-
✓ SVG 777ms
|
|
77
|
-
✓ attributeExpressions 825ms
|
|
78
|
-
✓ test/dynamic-dom.spec.js (16 tests) 3030ms
|
|
79
|
-
✓ SVG 691ms
|
|
80
|
-
✓ attributeExpressions 985ms
|
|
81
|
-
✓ components 328ms
|
|
82
|
-
stdout | test/dom-compatible.spec.js > Convert JSX fixtures > attributeExpressions
|
|
83
|
-
|
|
84
|
-
SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
|
|
85
|
-
|
|
86
|
-
/Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_compatible_fixtures__/attributeExpressions/code.js
|
|
87
|
-
|
|
88
|
-
382 | }
|
|
89
|
-
383 |
|
|
90
|
-
> 384 | const template89 = <div _hk="should warn _hk is present on template" />;
|
|
91
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
92
|
-
385 |
|
|
93
|
-
386 | const template90 = <div style={{}} />;
|
|
94
|
-
387 |
|
|
95
|
-
|
|
96
|
-
✓ test/rowproof.spec.js (15 tests) 537ms
|
|
97
|
-
✓ stamps a plain member-read row 323ms
|
|
98
|
-
✓ test/numberedId.spec.js (1 test) 709ms
|
|
99
|
-
✓ handles >= 490 merged dynamic attributes without emitting reserved-word bindings 707ms
|
|
100
|
-
✓ test/dom-no-inline-styles.spec.js (1 test) 744ms
|
|
101
|
-
✓ attributeExpressions 733ms
|
|
102
|
-
✓ test/ssr-server-components.spec.js (1 test) 677ms
|
|
103
|
-
✓ behaviorClaims 675ms
|
|
104
|
-
✓ test/dom-wrapperless.spec.js (3 tests) 1208ms
|
|
105
|
-
✓ components 931ms
|
|
106
|
-
✓ test/dom-hydratable-dev.spec.js (2 tests) 830ms
|
|
107
|
-
✓ simpleElements 760ms
|
|
108
|
-
✓ test/dom-omit-attribute-spacing.spec.js (1 test) 649ms
|
|
109
|
-
✓ SVG 647ms
|
|
110
|
-
✓ test/dom-compatible.spec.js (3 tests) 1367ms
|
|
111
|
-
✓ SVG 511ms
|
|
112
|
-
✓ attributeExpressions 792ms
|
|
113
|
-
✓ test/dynamic-wrapperless.spec.js (3 tests) 1046ms
|
|
114
|
-
✓ components 894ms
|
|
115
|
-
✓ test/defaults.spec.js (3 tests) 138ms
|
|
116
|
-
✓ test/dom-require-import-source.spec.js (4 tests) 235ms
|
|
117
|
-
|
|
118
|
-
Test Files 20 passed (20)
|
|
119
|
-
Tests 153 passed (153)
|
|
120
|
-
Start at 15:50:06
|
|
121
|
-
Duration 5.68s (transform 464ms, setup 0ms, import 8.99s, tests 31.05s, environment 4ms)
|
|
122
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ tsc -p tsconfig.json --noEmit
|