vorzelajs 0.0.3 → 0.0.4

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.
@@ -32,11 +32,11 @@ function tryRequirePlugin(name) {
32
32
  return null;
33
33
  }
34
34
  }
35
- async function tryImportPlugin(name) {
35
+ async function tryImportPlugin(name, options) {
36
36
  try {
37
37
  const mod = await import(name);
38
38
  const fn = mod.default ?? mod;
39
- return typeof fn === 'function' ? fn() : null;
39
+ return typeof fn === 'function' ? fn(options) : null;
40
40
  }
41
41
  catch {
42
42
  return null;
@@ -110,7 +110,7 @@ export async function resolveVorzelaConfig(appRoot, options = {}) {
110
110
  plugins.push(options.solid);
111
111
  }
112
112
  else {
113
- const solidPlugin = await tryImportPlugin('vite-plugin-solid');
113
+ const solidPlugin = await tryImportPlugin('vite-plugin-solid', { ssr: true });
114
114
  if (solidPlugin) {
115
115
  plugins.push(solidPlugin);
116
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vorzelajs",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "description": "Batteries-included SolidJS framework with file-based routing, streamed SSR, and server-only boundaries",
6
6
  "license": "MIT",