@svadmin/lite 0.9.1 → 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 +18 -0
- package/dist/polyfill-entry.d.ts +2 -0
- package/dist/polyfill-entry.js +3 -0
- package/dist/polyfill.js +20707 -0
- package/package.json +11 -4
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
|