diff --git a/packages/bootstrap/src/bootstrap.ts b/packages/bootstrap/src/bootstrap.ts index a86e9632218b..7eac02476e20 100644 --- a/packages/bootstrap/src/bootstrap.ts +++ b/packages/bootstrap/src/bootstrap.ts @@ -49,6 +49,7 @@ export class BootstrapStarter { // 初始化一个只读配置的空框架,并且初始化容器和扫描 const framework = new ConfigFramework(); await framework.initialize({ + ...this.globalOptions, baseDir: this.baseDir, appDir: this.appDir, globalApplicationHandler: (type: MidwayFrameworkType) => {