Skip to content

Commit

Permalink
fix: fix load order and user can cover default dir
Browse files Browse the repository at this point in the history
czy88840616 committed Nov 16, 2018
1 parent cd9e5fc commit 990ddcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midway-core/src/loader.ts
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ export class MidwayLoader extends EggLoader {
// 如果没有关闭autoLoad 则进行load
if (!containerConfig.disableAutoLoad) {
this.applicationContext.load({
loadDir: (this.isTsMode ? [this.baseDir] : []).concat(this.buildLoadDir(containerConfig.loadDir || [])),
loadDir: this.buildLoadDir(containerConfig.loadDir || []).concat(this.isTsMode ? [this.baseDir] : []),
pattern: containerConfig.pattern,
ignore: containerConfig.ignore
});

0 comments on commit 990ddcb

Please sign in to comment.