Skip to content

Commit 102f136

Browse files
committed
chore: update examples/multiple-entries-heavy
1 parent e42bda8 commit 102f136

24 files changed

+333
-244
lines changed

examples/multiple-entries-heavy/bootstrap.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@ const fs = require('fs');
22
const path = require('path');
33

44
const total = 20;
5-
const content = `
6-
import react from 'react'; react;
7-
import reactDom from 'react-dom'; reactDom;
8-
import three from 'three'; three;
9-
import antd from 'antd'; antd;
5+
const content = `import react from 'react';
6+
import reactDom from 'react-dom';
7+
import * as antd from 'antd';
8+
import * as three from 'three';
9+
import * as lodash from 'lodash';
10+
import * as axios from 'axios';
11+
12+
window.React = react;
13+
window.ReactDom = reactDom;
14+
window.Antd = antd;
15+
window.Three = three;
16+
window.Lodash = lodash;
17+
window.Axios = axios;
1018
`;
19+
1120
const makoConfig = { entry: {} };
1221

1322
for (let i = 0; i < total; i++) {
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import * as antd from 'antd';
2+
import * as axios from 'axios';
3+
import * as lodash from 'lodash';
14
import react from 'react';
2-
react;
35
import reactDom from 'react-dom';
4-
reactDom;
5-
import three from 'three';
6-
three;
7-
import antd from 'antd';
8-
antd;
6+
import * as three from 'three';
7+
8+
window.React = react;
9+
window.ReactDom = reactDom;
10+
window.Antd = antd;
11+
window.Three = three;
12+
window.Lodash = lodash;
13+
window.Axios = axios;

0 commit comments

Comments
 (0)