Commit 8682ab5
fix: make example field optional in cc build
When a custom component does not export an `./example` field in its
package.json, `gradio cc build` crashes because it tries to access
`.gradio` on `undefined`. The dev server (dev.ts) already guards
against this, but the build path was missing the same check.
Fixes #13132
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 30bf54c commit 8682ab5
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
0 commit comments