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

supabase / realtime-js / 15488031381
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: chore/deprecation
DEFAULT BRANCH: master
Ran 06 Jun 2025 10:05AM UTC
Jobs 1
Files 14
Run time 9min
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

06 Jun 2025 10:04AM UTC coverage: 89.738%. Remained the same
15488031381

push

github

web-flow
fix: prioritize ESM build in package exports to fix webpack warnings (#481)

Updates package.json exports to default to the ESM build instead of CommonJS,
resolving "Critical dependency: the request of a dependency is an expression"
warnings in webpack builds.

Changes:
- Set "default" to ESM build (./dist/module/) preserving native import()
- Add explicit "import" condition for ESM-aware bundlers
- Add "types" condition for better TypeScript resolution
- Keep "require" pointing to CommonJS for Node.js compatibility

Tested on Next.js v15 with webpack (non-turbopack). Previous workaround required
manual webpack config:

```js
webpack: (config) => {
  config.resolve.mainFields = ['browser', 'module', 'main'];
  config.resolve.conditionNames = ['browser', 'module', 'import', 'default'];
  return config;
}
```

This exports change eliminates the need for manual webpack configuration
by making bundlers prefer the ES2020 build that preserves dynamic imports.

Fixes: webpack "Critical dependency" warnings in issue #1437

361 of 408 branches covered (88.48%)

Branch coverage included in aggregate %.

1318 of 1463 relevant lines covered (90.09%)

51.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15488031381.1 06 Jun 2025 10:05AM UTC 14
89.74
GitHub Action Run
Source Files on build 15488031381
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 6a822a00 on github
  • Prev Build on next (#15488019303)
  • Next Build on next (#15492194079)
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