Spaces:
Sleeping
Sleeping
Commit
·
cfdef22
1
Parent(s):
f86de79
Add SSR noExternal config for isomorphic-dompurify
Browse files- vite.config.ts +3 -0
vite.config.ts
CHANGED
|
@@ -38,6 +38,9 @@ export default defineConfig({
|
|
| 38 |
optimizeDeps: {
|
| 39 |
include: ["uuid", "sharp", "@gradio/client", "clsx"],
|
| 40 |
},
|
|
|
|
|
|
|
|
|
|
| 41 |
test: {
|
| 42 |
workspace: [
|
| 43 |
{
|
|
|
|
| 38 |
optimizeDeps: {
|
| 39 |
include: ["uuid", "sharp", "@gradio/client", "clsx"],
|
| 40 |
},
|
| 41 |
+
ssr: {
|
| 42 |
+
noExternal: ["isomorphic-dompurify"],
|
| 43 |
+
},
|
| 44 |
test: {
|
| 45 |
workspace: [
|
| 46 |
{
|