-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path@Client.js
More file actions
35 lines (24 loc) · 795 Bytes
/
@Client.js
File metadata and controls
35 lines (24 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import ReactDOM from 'react-dom';
import routes from './routes/routes.jsx'
import es6Promisepolyfill from 'es6-promise';
es6Promisepolyfill.polyfill();
//
// setTimeout(() => {
// require.ensure(['./Common/js/es6-dynamic-chunk'], (require) => {
// console.log(require('./Common/js/es6-dynamic-chunk'));
// })
// }, 1000);
// let a = 1;
// async function getEs6DynamicChunk() {
// console.log(await
// import ('./e2'));
// }
// setTimeout(getEs6DynamicChunk, 5000);
// async function getCommonsJsDynamicChunk() {
// let module = await
// import ('./Common/js/commonjs-dynamic-chunk');
// console.log(module);
// //module.default('async function import');
// }
// setTimeout(getCommonsJsDynamicChunk, 1000);
ReactDOM.render(routes, document);