diff --git a/examples/loader.ts b/examples/loader.ts index 011a4738b..f7d114ad3 100644 --- a/examples/loader.ts +++ b/examples/loader.ts @@ -22,8 +22,10 @@ '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'), @@ -31,7 +33,7 @@ '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'), diff --git a/packages/amis/src/minimal.ts b/packages/amis/src/minimal.ts index 2a7b8f8b2..d25366d10 100644 --- a/packages/amis/src/minimal.ts +++ b/packages/amis/src/minimal.ts @@ -2,6 +2,7 @@ * 只包含 amis 最小集,不引入其他模块 */ import {registerRenderer} from 'amis-core'; +export * from 'amis-core'; import './preset'; // 注册渲染器