@hyperspan/plugin-preact 1.0.0 → 1.0.1
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/package.json +7 -7
- package/src/index.ts +1 -1
- package/src/preact-client.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperspan/plugin-preact",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Hyperspan Plugin for Preact",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"url": "git+https://github.com/vlucas/hyperspan.git"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/bun": "^1.
|
|
27
|
-
"prettier": "^3.
|
|
28
|
-
"typescript": "^5.
|
|
26
|
+
"@types/bun": "^1.3.8",
|
|
27
|
+
"prettier": "^3.8.1",
|
|
28
|
+
"typescript": "^5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@hyperspan/html": "^1.0.0",
|
|
32
|
-
"@hyperspan/framework": "^1.0.
|
|
32
|
+
"@hyperspan/framework": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"preact": "^10.
|
|
36
|
-
"preact-render-to-string": "^6.
|
|
35
|
+
"preact": "^10.28.3",
|
|
36
|
+
"preact-render-to-string": "^6.6.5"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -105,7 +105,7 @@ export function preactPlugin(): HS.Plugin {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// Add to contents so this is in the client JS as well
|
|
108
|
-
contents = `import { h
|
|
108
|
+
contents = `import { h as __hs_h, render as __hs_render, hydrate as __hs_hydrate } from 'preact';${contents}`;
|
|
109
109
|
|
|
110
110
|
// Some _interesting_ work at play here...
|
|
111
111
|
// We have to modify the original file contents to add an __HS_PLUGIN export that the renderIsland() function can use to render the component.
|
package/src/preact-client.ts
CHANGED