@solid-primitives/props
Advanced tools
Comparing version 2.1.6 to 2.1.7
{ | ||
"name": "@solid-primitives/props", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Library of primitives focused around component props.", | ||
@@ -29,3 +29,5 @@ "author": "Alex Lohr <alex.lohr@logmein.com>", | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"exports": { | ||
@@ -40,5 +42,2 @@ ".": { | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"scripts": { | ||
@@ -45,0 +44,0 @@ "start": "vite serve dev --host", |
@@ -25,2 +25,23 @@ <p> | ||
## SSR Support | ||
If you are using [solid-start](https://github.com/solidjs/solid-start) with SSR, you may see this error comming form the `@solid-primitives/props` package. | ||
``` | ||
TypeError: web.template is not a function | ||
``` | ||
To prevent this, add `"@solid-primitives/props"` entry to `noExternal` field in your vite config, like so: | ||
```tsx | ||
export default defineConfig({ | ||
plugins: [solid()], | ||
ssr: { | ||
// It allows Vite to preprocess the package | ||
noExternal: ["@solid-primitives/props"], | ||
}, | ||
}) | ||
``` | ||
## `combineProps` | ||
@@ -27,0 +48,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108913
218
No