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

caleb531 / youversion-suggest-api / 10624228760 / 2
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: main
Ran 29 Aug 2024 11:41PM UTC
Files 6
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Aug 2024 11:33PM UTC coverage: 98.143%. Remained the same
10624228760.2

push

github

caleb531
Properly externalize htmlrewriter and html-entities

This solves a major issue I was hitting with bundling htmlrewriter with
my project. The issue was twofold:
- @rollup/plugin-wasm was breaking the initialization logic for
  htmlrewriter's WASM binary, thus preventing the WASM file from being
  loaded from the library bundle's entry point (dist/index.js).
 - htmlrewriter had its own set of exports to allow a consuming
   application's build tool to bundle the correct WASM initialization
   code according to the specific environment or runtime

By marking htmlrewriter as an external dependency in my Rollup config, I
solve both of these problems, in addition to simplifying the build
process and bundle size.

In accordance with this change, I also needed to mark the html-entities
package as external, lest Rollup present me with a warning when building
the library. Fortunately, the html-entities package did not strictly
need to be bundled with the library, anyway.

Of course, all of this creates the stipulation that any consuming
application which targets a browser (e.g. a browser extension or web
app) must have a build step so it can build the library. I think this
should be a fine stipulation to make, since I can't see many use cases
where a browser-targeting application would need to use this library AND
avoid a build step.

178 of 183 branches covered (97.27%)

Branch coverage included in aggregate %.

509 of 517 relevant lines covered (98.45%)

488.51 hits per line

Source Files on job 10624228760.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 10624228760
  • e1523325 on github
  • Prev Job for on next (#10621603017.1)
  • Next Job for on next (#10624240673.1)
  • Delete
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

© 2026 Coveralls, Inc