File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 44 "private" : true ,
55 "dependencies" : {
66 "@microsoft/mgt" : " 0.1.0-preview.8" ,
7+ "@webcomponents/webcomponentsjs" : " 2.2.10" ,
78 "react" : " ^16.8.5" ,
9+ "react-app-polyfill" : " 1.0.1" ,
810 "react-dom" : " ^16.8.5" ,
911 "react-scripts" : " ^3.0.0"
1012 },
Original file line number Diff line number Diff line change 1+ import 'react-app-polyfill/ie11' ;
2+ import 'react-app-polyfill/stable' ;
3+ // in theory, we should be able to add this to index.html
4+ // <script>
5+ // window.WebComponents = window.WebComponents || {};
6+ // window.WebComponents.root = '../node_modules/@webcomponents/webcomponentsjs/';
7+ // </script>
8+ // and then
9+ // import '../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js';
10+ // but for some reason it doesn't on edge
11+ // because of this, we'll just load the whole bundle.
12+ import '../node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js' ;
113import React from 'react' ;
214import ReactDOM from 'react-dom' ;
315import App from './App' ;
You can’t perform that action at this time.
0 commit comments