Commit c7a964d
committed
fix: resolve MISSING_EXPORT warnings for optional hooks exports
Spread namespace imports into plain objects so that Rollup/Rolldown
no longer warns about accessing potentially missing exports like
reroute, transport, handleError, or init from hooks files.
This removes the onwarn suppression workaround that was added in #13687
and fixes the root cause of the issue.
Closes #135081 parent 3804428 commit c7a964d
File tree
3 files changed
+8
-20
lines changed- .changeset
- packages/kit/src
- core/sync
- exports/vite
3 files changed
+8
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
| |||
917 | 914 | | |
918 | 915 | | |
919 | 916 | | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
| 917 | + | |
935 | 918 | | |
936 | 919 | | |
937 | 920 | | |
| |||
0 commit comments