Spaces:
Sleeping
Sleeping
Commit
·
23183ec
1
Parent(s):
cfdef22
Fix isomorphic-dompurify SSR bundling issues
Browse files- vite.config.ts +7 -1
vite.config.ts
CHANGED
|
@@ -39,7 +39,13 @@ export default defineConfig({
|
|
| 39 |
include: ["uuid", "sharp", "@gradio/client", "clsx"],
|
| 40 |
},
|
| 41 |
ssr: {
|
| 42 |
-
noExternal: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
},
|
| 44 |
test: {
|
| 45 |
workspace: [
|
|
|
|
| 39 |
include: ["uuid", "sharp", "@gradio/client", "clsx"],
|
| 40 |
},
|
| 41 |
ssr: {
|
| 42 |
+
noExternal: [
|
| 43 |
+
"isomorphic-dompurify",
|
| 44 |
+
"dompurify",
|
| 45 |
+
"@asamuzakjp/css-color",
|
| 46 |
+
"@asamuzakjp/dom-selector",
|
| 47 |
+
],
|
| 48 |
+
external: ["jsdom"],
|
| 49 |
},
|
| 50 |
test: {
|
| 51 |
workspace: [
|