@hyperspan/plugin-preact 1.0.0-alpha.1 → 1.0.0-alpha.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/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -160,7 +160,7 @@ ${componentName}.__HS_ISLAND = {
|
|
|
160
160
|
/**
|
|
161
161
|
* Render a Preact island component
|
|
162
162
|
*/
|
|
163
|
-
export function renderPreactIsland(Component: any, props: any, options = {
|
|
163
|
+
export function renderPreactIsland(Component: any, props: any = {}, options = {
|
|
164
164
|
ssr: true,
|
|
165
165
|
loading: undefined,
|
|
166
166
|
}) {
|
|
@@ -170,6 +170,6 @@ export function renderPreactIsland(Component: any, props: any, options = {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
throw new Error(
|
|
173
|
-
`Module ${Component.name} was not loaded with an island plugin! Did you forget to install an island plugin and add it to the '
|
|
173
|
+
`Module ${Component.name} was not loaded with an island plugin! Did you forget to install an island plugin and add it to the 'plugins' option in your hyperspan.config.ts file?`
|
|
174
174
|
);
|
|
175
175
|
}
|