diff --git a/packages/midway-core/src/container.ts b/packages/midway-core/src/container.ts index ff37fc189153..9bd84e266021 100644 --- a/packages/midway-core/src/container.ts +++ b/packages/midway-core/src/container.ts @@ -216,6 +216,7 @@ export class MidwayContainer extends Container implements IContainer { for (const dir of loadDirs) { const fileResults = globby.sync(['**/**.ts', '**/**.tsx', '**/**.js', '!**/**.d.ts'].concat(opts.pattern || []), { cwd: dir, + followSymbolicLinks: false, ignore: [ '**/node_modules/**', '**/logs/**',