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.
- package/dist/vite/index.js +3 -3
- package/package.json +1 -1
package/dist/vite/index.js
CHANGED
|
@@ -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
|
}
|