sapper-ie

Sapper working in IE11/Edge

Github星跟蹤圖

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)
  1. Non-legacy (regular build) has rest spread so that Edge works (wow)
!legacy && babel({
    extensions: ['.js', '.mjs', '.html', '.svelte'],
    exclude: ['node_modules/@babel/**'],
    plugins: [
      '@babel/plugin-syntax-dynamic-import',
      '@babel/plugin-proposal-object-rest-spread'
    ]
  }),
  1. Special run mode to run the app via bable for easy local testing
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

主要指標

概覽
名稱與所有者antony/sapper-ie
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證
所有者活动
創建於2019-06-24 08:27:52
推送於2023-01-06 01:55:18
最后一次提交2020-09-18 09:31:40
發布數0
用户参与
星數46
關注者數5
派生數6
提交數17
已啟用問題?
問題數3
打開的問題數1
拉請求數4
打開的拉請求數9
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?