• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hexojs / hexo-util / 16651986209

31 Jul 2025 02:35PM UTC coverage: 73.036% (-23.8%) from 96.875%
16651986209

Pull #426

github

web-flow
Merge e24598988 into d497bc760
Pull Request #426: build: restructure for dual ESM/CJS output, update tooling, and enhance utilities

811 of 1128 branches covered (71.9%)

1594 of 2028 new or added lines in 40 files covered. (78.6%)

6 existing lines in 1 file now uncovered.

5290 of 7243 relevant lines covered (73.04%)

69.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/lib/highlight_esm.ts
1
import { createRequire } from 'module';
1✔
2
import { default as highlightUtil } from './highlight_shared.js';
1✔
3

1✔
4
// For ESM environments
1✔
5
global._require = createRequire(import.meta.url);
1✔
6

1✔
7
// ESM compatibility
1✔
8
export default highlightUtil;
1✔
9
// CommonJS compatibility
1✔
10
if (typeof module !== 'undefined' && typeof module.exports === 'object' && module.exports !== null) {
1!
NEW
11
  module.exports = highlightUtil;
×
NEW
12
  // For ESM compatibility
×
NEW
13
  module.exports.default = highlightUtil;
×
NEW
14
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc