组件化浏览器的兼容性问题汇总
框架依赖的 Web 标准技术
优先级高
- HTML Imports
- HTML tempaltes
- ES6 to ES5 (搭建模块开发环境)
polyfill
https://github.com/webcomponents/webcomponentsjs/tree/v1#browser-support
https://github.com/webcomponents/webcomponentsjs/raw/v1/webcomponents-lite.js
https://github.com/webcomponents/webcomponentsjs/raw/v1/webcomponents-lite.js.map
html-imports & dynamic-imports
HTMLImports.loadImports(document.body)
https://github.com/webcomponents/html-imports#dynamic-imports