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

FullHuman / purgecss / 43858175167
95%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 11:31AM UTC
Jobs 1
Files 9
Run time 1min
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

16 Nov 2026 11:29AM UTC coverage: 95.42% (+0.06%) from 95.364%
43858175167

push

github

web-flow
fix(purgecss-from-jsx): parse files with import and export statements by default (#1601)

`purgeFromJsx()` parsed the code with `{ ecmaVersion: "latest" }`, which
acorn parses as a script, so a JSX file with `import React from "react"`
threw "'import' and 'export' may appear only with 'sourceType: module'"
and the whole purge failed. The README example hit it as soon as a
component imported something.

The default options now parse the code as a script that can have the
syntax of ES modules (`allowImportExportEverywhere`,
`allowAwaitOutsideFunction`): `import`, `export`, `import.meta` and
top-level `await` parse, and so do scripts with `require`, a hashbang or
sloppy-mode code. Module mode was not used because it is strict mode, and
sloppy scripts that parse today would fail. Options passed to the
extractor still replace the defaults. `purgeFromTsx()` uses the same
defaults, which matters when `tsOptions` keeps the ES modules, e.g.
`module: ESNext`.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Floriel <Ffloriel@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

1044 of 1140 branches covered (91.58%)

Branch coverage included in aggregate %.

977 of 978 relevant lines covered (99.9%)

10737.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 43858175167.1 16 Nov 2026 11:31AM UTC 18
93.97
GitHub Action Run
Source Files on build 43858175167
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43858175167
  • 34ea7989 on github
  • Prev Build on main (#43856646051)
  • Next Build on main (#43912072135)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc