Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core/loader): use tegg-metadata EggLoadUnitType enum #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nightink
Copy link
Contributor

  • fix(core/lifecycle): typo
Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@nightink nightink requested a review from fengmk2 December 13, 2023 10:24
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (04fabef) 92.52% compared to head (b279758) 92.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #176   +/-   ##
=======================================
  Coverage   92.52%   92.53%           
=======================================
  Files         235      235           
  Lines        5020     5021    +1     
  Branches      539      539           
=======================================
+ Hits         4645     4646    +1     
  Misses        375      375           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -40,4 +40,4 @@ export class ModuleLoader implements Loader {
}
}

LoaderFactory.registerLoader('MODULE', ModuleLoader.createModuleLoader);
LoaderFactory.registerLoader(EggLoadUnitType.MODULE, ModuleLoader.createModuleLoader);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eggjs/tegg-metadata 这个需要从 devDep 挪到 dep 了。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哦 没注意到这个 那看是否有必要了。

主要看到消费 createLoader 用了 enum

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就不要改了,否则会循环依赖。

@killagu
Copy link
Contributor

killagu commented Jan 16, 2024

这需要从长计议一下了,目前 tegg 中容易引起 npm 的循环依赖,得做一下改造。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants