2021-06-24 20:59:28 +08:00
|
|
|
// 这个文件编译不会包裹,所以手动包裹一下。
|
|
|
|
(function () {
|
|
|
|
const __moduleId = (str: string) => '';
|
2019-08-05 11:11:08 +08:00
|
|
|
|
2021-06-24 20:59:28 +08:00
|
|
|
const mapping: {
|
|
|
|
[propName: string]: any;
|
|
|
|
} = {
|
|
|
|
'react': __moduleId('react'),
|
|
|
|
'react-dom': __moduleId('react-dom'),
|
|
|
|
'immutability-helper': __moduleId('immutability-helper'),
|
|
|
|
'react-cropper': __moduleId('react-cropper'),
|
|
|
|
'react-dropzone': __moduleId('react-dropzone'),
|
|
|
|
'classnames': __moduleId('classnames'),
|
|
|
|
'axios': __moduleId('axios'),
|
|
|
|
'exceljs': __moduleId('exceljs'),
|
2023-03-21 14:04:40 +08:00
|
|
|
'fflate': __moduleId('fflate'),
|
2021-06-24 20:59:28 +08:00
|
|
|
'moment': __moduleId('moment'),
|
|
|
|
'mobx': __moduleId('mobx'),
|
2023-09-20 15:14:48 +08:00
|
|
|
'mobx-react': __moduleId('mobx-react'),
|
2021-06-24 20:59:28 +08:00
|
|
|
'mobx-state-tree': __moduleId('mobx-state-tree'),
|
|
|
|
'react-transition-group': __moduleId('react-transition-group'),
|
|
|
|
'papaparse': __moduleId('papaparse'),
|
|
|
|
'echarts': __moduleId('echarts'),
|
|
|
|
'zrender': __moduleId('zrender'),
|
|
|
|
'sortablejs': __moduleId('sortablejs'),
|
2022-06-01 15:06:00 +08:00
|
|
|
'amis': __moduleId('amis'),
|
|
|
|
'amis@@version': __moduleId('amis'),
|
2021-06-24 20:59:28 +08:00
|
|
|
'amis/embed': __moduleId('./embed.tsx'),
|
|
|
|
'amis@@version/embed': __moduleId('./embed.tsx'),
|
|
|
|
'prop-types': __moduleId('prop-types'),
|
|
|
|
'qs': __moduleId('qs'),
|
|
|
|
'path-to-regexp': __moduleId('path-to-regexp'),
|
2023-09-20 15:14:48 +08:00
|
|
|
'history': __moduleId('history'),
|
|
|
|
'tslib': __moduleId('tslib'),
|
|
|
|
'@fex/amis': __moduleId('amis'),
|
|
|
|
'@fex/amis-ui': __moduleId('amis-ui'),
|
|
|
|
'@fex/amis-core': __moduleId('amis-core'),
|
|
|
|
'@fex/amis-formula': __moduleId('amis-formula')
|
2021-06-24 20:59:28 +08:00
|
|
|
};
|
2019-08-05 11:11:08 +08:00
|
|
|
|
2021-06-24 20:59:28 +08:00
|
|
|
Object.keys(mapping).forEach(key => {
|
2023-05-05 17:13:06 +08:00
|
|
|
(window as any).amis.require.aliasMapping[key] = mapping[key];
|
2021-06-24 20:59:28 +08:00
|
|
|
});
|
2019-08-05 11:11:08 +08:00
|
|
|
|
2023-05-05 17:13:06 +08:00
|
|
|
(window as any).amisRequire = (window as any).amis.require;
|
2021-06-24 20:59:28 +08:00
|
|
|
})();
|