@svadmin/lite 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -207,6 +207,24 @@ import { createLegacyRedirectHook } from '@svadmin/lite';
207
207
  export const handle = createLegacyRedirectHook('/lite');
208
208
  ```
209
209
 
210
+ ### 3b. Optional IE11 polyfill and enhancement
211
+
212
+ The Lite SSR baseline does not require a polyfill: native links, native forms,
213
+ server actions, and full-page navigation work without browser JavaScript. If
214
+ you enable `enhance.js`, load the small ES5 DOM baseline first:
215
+
216
+ ```html
217
+ <script src="/polyfill.js"></script>
218
+ <script src="/enhance.js"></script>
219
+ ```
220
+
221
+ Copy both assets from the package exports `@svadmin/lite/polyfill.js` and
222
+ `@svadmin/lite/enhance.js` into the application's static directory. The
223
+ published polyfill bundles `core-js/stable` and `whatwg-fetch` for the legacy
224
+ enhancement layer. It does not polyfill WebSocket, WASM, Canvas, or the Svelte
225
+ runtime. Those capabilities must continue to use the documented server
226
+ fallback.
227
+
210
228
  ### 4. Optional legacy-browser metadata
211
229
 
212
230
  ```html
@@ -0,0 +1,2 @@
1
+ import 'core-js/stable';
2
+ import 'whatwg-fetch';
@@ -0,0 +1,3 @@
1
+ // IE11 baseline for optional Lite enhancements.
2
+ import 'core-js/stable';
3
+ import 'whatwg-fetch';