Skip to content

Rolldown CI Failures #8754

@sheremet-va

Description

@sheremet-va

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.


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

Any

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions