From 57128b1ca97ab69f066b80f8862c376e02aebec1 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Tue, 16 Jun 2020 16:29:01 +0800 Subject: [PATCH] fix: fix path --- packages/midway-core/src/container.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/midway-core/src/container.ts b/packages/midway-core/src/container.ts index 10ecf356062f..6f380dcc42a7 100644 --- a/packages/midway-core/src/container.ts +++ b/packages/midway-core/src/container.ts @@ -226,8 +226,7 @@ export class MidwayContainer extends Container implements IContainer { ].concat(opts.ignore || []), }); - for (const name of fileResults) { - const file = path.join(dir, name); + for (const file of fileResults) { debug(`binding file => ${file}`); const exports = require(file); this.bindClass(exports);