Skip to content

Commit

Permalink
fix: fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Jun 16, 2020
1 parent 945c797 commit 57128b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/midway-core/src/container.ts
Expand Up @@ -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);
Expand Down

0 comments on commit 57128b1

Please sign in to comment.