Skip to content

Commit

Permalink
chore: 调整 jssdk amisRequire('amis') 能拿到轻量级的模块, amisRequire(['amis/ful…
Browse files Browse the repository at this point in the history
…l']) 拿全量的包含所有 amis-ui 和 内置渲染器 的模块
  • Loading branch information
2betop committed Nov 8, 2024
1 parent c719582 commit 800b15a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@
'echarts': __moduleId('echarts'),
'zrender': __moduleId('zrender'),
'sortablejs': __moduleId('sortablejs'),
'amis': __moduleId('amis'),
'amis@@version': __moduleId('amis'),
'amis': __moduleId('amis/lib/minimal'),
'amis/full': __moduleId('amis'),
'amis@@version': __moduleId('amis/lib/minimal'),
'amis@@version/full': __moduleId('amis'),
'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'),
'history': __moduleId('history'),
'tslib': __moduleId('tslib'),
'@fex/amis': __moduleId('amis'),
'@fex/amis': __moduleId('amis/lib/minimal'),
'@fex/amis-ui': __moduleId('amis-ui'),
'@fex/amis-core': __moduleId('amis-core'),
'@fex/amis-formula': __moduleId('amis-formula'),
Expand Down
1 change: 1 addition & 0 deletions packages/amis/src/minimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* 只包含 amis 最小集,不引入其他模块
*/
import {registerRenderer} from 'amis-core';
export * from 'amis-core';
import './preset';

// 注册渲染器
Expand Down

0 comments on commit 800b15a

Please sign in to comment.