-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
Rolldown fails on CI for some time. For the longest time it was an issue with source maps, but at one point something else broke too. This PR documents all the known issues.
Upstream issue #8754 (comment)
| const mod = await import("./dist/generated.js") |
Rolldown does not resolve the id /dist/generated.js into a full file path and fails in loadAndTransform function. Looks like, it is stored with an incorrect file property in the module graph (perhaps, during the import analysis?) and then never updated. Note that this works correctly in Vite 7.
vitest/test/config/test/failures.test.ts
Line 361 in 2827eab
| expect(stderr).toMatch('ERROR: Coverage for functions (0%) does not meet global threshold (100%)') |
Looks like SSR transform behaves differently because the coverage has no functions:
functions: { total: 0, covered: 0, skipped: 0, pct: 100 },
The module looks like this:
__vite_ssr_exportName__("uncovered", () => { try { return uncovered } catch {} });
function uncovered(condition) {
return condition ? 1 : 0;
}New issues will be added
Reproduction
https://github.com/vitest-dev/vitest
System Info
AnyUsed Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.