From bb1a6bae06c2f4566a935397a679cc1fb3c026a4 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2698393+2betop@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:00:41 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20jssdk=20amisRequi?= =?UTF-8?q?re('amis')=20=E8=83=BD=E6=8B=BF=E5=88=B0=E8=BD=BB=E9=87=8F?= =?UTF-8?q?=E7=BA=A7=E7=9A=84=E6=A8=A1=E5=9D=97,=20amisRequire(['amis/full?= =?UTF-8?q?'])=20=E6=8B=BF=E5=85=A8=E9=87=8F=E7=9A=84=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E6=89=80=E6=9C=89=20amis-ui=20=E5=92=8C=20=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E5=99=A8=20=E7=9A=84=E6=A8=A1=E5=9D=97=20(#1?= =?UTF-8?q?1172)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/loader.ts | 8 +++++--- packages/amis/src/minimal.ts | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) 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'; // 注册渲染器