File tree Expand file tree Collapse file tree 24 files changed +333
-244
lines changed
examples/multiple-entries-heavy Expand file tree Collapse file tree 24 files changed +333
-244
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,21 @@ const fs = require('fs');
22const path = require ( 'path' ) ;
33
44const 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+
1120const makoConfig = { entry : { } } ;
1221
1322for ( let i = 0 ; i < total ; i ++ ) {
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
Original file line number Diff line number Diff line change 1+ import * as antd from 'antd' ;
2+ import * as axios from 'axios' ;
3+ import * as lodash from 'lodash' ;
14import react from 'react' ;
2- react ;
35import 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 ;
You can’t perform that action at this time.
0 commit comments