@solidjs/vite-plugin 3.0.0-next.32 → 3.0.0-next.33
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/README.md +13 -0
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +10 -0
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.mjs
CHANGED
|
@@ -2909,12 +2909,22 @@ function getSolidOptions(options, isSsr, dev, isTestMode = false) {
|
|
|
2909
2909
|
hydratable: false
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
|
+
|
|
2913
|
+
// Server components (serverFunctions.components) turn on the SSR-side
|
|
2914
|
+
// behavior-claims transform: ref/on* positions on intrinsic elements
|
|
2915
|
+
// compile to guarded `_bnd` claim holes instead of dropping. SSR-only
|
|
2916
|
+
// by construction (the dom generate ignores the flag), and apps without
|
|
2917
|
+
// the flag compile byte-for-byte as before.
|
|
2918
|
+
const serverComponents = typeof options.serverFunctions === 'object' && !!options.serverFunctions.components;
|
|
2912
2919
|
return {
|
|
2913
2920
|
moduleName: '@solidjs/web',
|
|
2914
2921
|
builtIns: SOLID_BUILT_INS,
|
|
2915
2922
|
contextToCustomElements: true,
|
|
2916
2923
|
wrapConditionals: true,
|
|
2917
2924
|
...solidOptions,
|
|
2925
|
+
...(serverComponents && solidOptions.generate === 'ssr' ? {
|
|
2926
|
+
serverComponents: true
|
|
2927
|
+
} : {}),
|
|
2918
2928
|
dev,
|
|
2919
2929
|
...(options.solid || {})
|
|
2920
2930
|
};
|