Skip to content

refactor: remove node internal api usage in loadPlugin#5769

Merged
renbaoshuo merged 1 commit into
masterfrom
refactor/load-plugin/create-require
May 6, 2026
Merged

refactor: remove node internal api usage in loadPlugin#5769
renbaoshuo merged 1 commit into
masterfrom
refactor/load-plugin/create-require

Conversation

@renbaoshuo
Copy link
Copy Markdown
Member

What does it do?

Remove Node.js internal API usage in loadPlugin by using Module.createRequire API.

Screenshots

Not needed.

Pull request tasks

  • Add test cases for the changes. Not needed.
  • Passed the CI test.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

How to test

git clone -b refactor/load-plugin/create-require https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test

@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 25418471046

Warning

No base build found for commit c7c78f9 on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 99.501%

Details

  • Patch coverage: 3 of 3 lines across 1 file are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 10018
Covered Lines: 9968
Line Coverage: 99.5%
Relevant Branches: 2538
Covered Branches: 2440
Branch Coverage: 96.14%
Branches in Coverage %: No
Coverage Strength: 59.38 hits per line

💛 - Coveralls

@renbaoshuo renbaoshuo merged commit f5a7d7d into master May 6, 2026
25 of 26 checks passed
@renbaoshuo renbaoshuo deleted the refactor/load-plugin/create-require branch May 6, 2026 07:46
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.

4 participants