chore: 调整 jssdk amisRequire('amis') 能拿到轻量级的模块, amisRequire(['amis/full']) 拿全量的包含所有 amis-ui 和 内置渲染器 的模块 (#11172)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
gh-pages / build (20.x) (push) Has been cancelled

This commit is contained in:
liaoxuezhi 2024-11-08 14:00:41 +08:00 committed by GitHub
parent 0a8ceaaf39
commit bb1a6bae06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -22,8 +22,10 @@
'echarts': __moduleId('echarts'), 'echarts': __moduleId('echarts'),
'zrender': __moduleId('zrender'), 'zrender': __moduleId('zrender'),
'sortablejs': __moduleId('sortablejs'), 'sortablejs': __moduleId('sortablejs'),
'amis': __moduleId('amis'), 'amis': __moduleId('amis/lib/minimal'),
'amis@@version': __moduleId('amis'), 'amis/full': __moduleId('amis'),
'amis@@version': __moduleId('amis/lib/minimal'),
'amis@@version/full': __moduleId('amis'),
'amis/embed': __moduleId('./embed.tsx'), 'amis/embed': __moduleId('./embed.tsx'),
'amis@@version/embed': __moduleId('./embed.tsx'), 'amis@@version/embed': __moduleId('./embed.tsx'),
'prop-types': __moduleId('prop-types'), 'prop-types': __moduleId('prop-types'),
@ -31,7 +33,7 @@
'path-to-regexp': __moduleId('path-to-regexp'), 'path-to-regexp': __moduleId('path-to-regexp'),
'history': __moduleId('history'), 'history': __moduleId('history'),
'tslib': __moduleId('tslib'), 'tslib': __moduleId('tslib'),
'@fex/amis': __moduleId('amis'), '@fex/amis': __moduleId('amis/lib/minimal'),
'@fex/amis-ui': __moduleId('amis-ui'), '@fex/amis-ui': __moduleId('amis-ui'),
'@fex/amis-core': __moduleId('amis-core'), '@fex/amis-core': __moduleId('amis-core'),
'@fex/amis-formula': __moduleId('amis-formula'), '@fex/amis-formula': __moduleId('amis-formula'),

View File

@ -2,6 +2,7 @@
* amis * amis
*/ */
import {registerRenderer} from 'amis-core'; import {registerRenderer} from 'amis-core';
export * from 'amis-core';
import './preset'; import './preset';
// 注册渲染器 // 注册渲染器