Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antony/sapper-ie
Sapper working in IE11/Edge
https://github.com/antony/sapper-ie
ie ie11 sapper svelte
Last synced: 27 days ago
JSON representation
Sapper working in IE11/Edge
- Host: GitHub
- URL: https://github.com/antony/sapper-ie
- Owner: antony
- Created: 2019-06-24T08:27:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:55:18.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T22:53:51.151Z (7 months ago)
- Topics: ie, ie11, sapper, svelte
- Language: JavaScript
- Homepage:
- Size: 513 KB
- Stars: 45
- Watchers: 6
- Forks: 6
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sapper IE
IE and Windows Edge barely qualify as browsers, but they are able to render HTML/CSS and execute JS, in a form. These modifications to the language help incapable browsers render websites.
## Status:
It Works!
- IE11 - Fully working
- Edge - Fully working## Changes from default Sapper
1. Polyfils in template.html (via Polyfill.io):
* default
* fetch
* Array.prototype.find
* Object.values (not strictly necessary - but useful)2. Non-legacy (regular build) has rest spread so that Edge works (wow)
```js
!legacy && babel({
extensions: ['.js', '.mjs', '.html', '.svelte'],
exclude: ['node_modules/@babel/**'],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-object-rest-spread'
]
}),
```3. Special run mode to run the app via bable for easy local testing
```sh
npm run build:dev
```## Running
Don't expect this to work in IE/Edge in dev mode.
```
npm run build # has shimport hack for easier debugging
node __sapper__/build
```