From a5433754620b40cb49692fed9fe58ab2c85da725 Mon Sep 17 00:00:00 2001 From: lihong Date: Mon, 27 Dec 2021 17:49:57 +0800 Subject: [PATCH] lihong67@huawei.com fix require module. Signed-off-by: lihong Change-Id: I9fdcadccf673666d084d060edc714e3546be2553 --- runtime/main/app/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/main/app/index.ts b/runtime/main/app/index.ts index acfffdc0..4f30496e 100644 --- a/runtime/main/app/index.ts +++ b/runtime/main/app/index.ts @@ -118,6 +118,7 @@ export function appCreate(page: Page, options: Options, data: object, services: $app_bootstrap$: appBootstrap, $app_require$: appRequireModule }; + global.$app_require$ = appRequireModule; // Compile js bundle code and get result. if (typeof code === 'function') {