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') {