@hyperspan/plugin-preact 0.1.4 → 0.1.5
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 +2 -2
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperspan/plugin-preact",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Hyperspan Plugin for Preact",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@hyperspan/html": "^0.1.7",
|
|
32
|
-
"@hyperspan/framework": "^0.
|
|
32
|
+
"@hyperspan/framework": "^0.3.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"preact": "^10.26.5",
|
package/src/index.ts
CHANGED
|
@@ -115,7 +115,7 @@ function __hs_renderIsland(jsContent = '', ssrContent = '', options = {}) {
|
|
|
115
115
|
return \`<div id="${jsId}">\${ssrContent}</div><div data-loading="lazy" style="height:1px;width:1px;overflow:hidden;"><template><script type="module" data-source-id="${jsId}">${contents}\${jsContent}</script></template></div>\`;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
return \`<div id="${jsId}">\${ssrContent}</div><script type="module" data-source-id="${jsId}"
|
|
118
|
+
return \`<div id="${jsId}">\${ssrContent}</div><script type="module" data-source-id="${jsId}">${contents}\${jsContent}</script>\`;
|
|
119
119
|
}
|
|
120
120
|
${componentName}.__HS_ISLAND = {
|
|
121
121
|
id: "${jsId}",
|