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
Used Package Manager
pnpm
Validations
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)
vitest/test/config/fixtures/fs-cached-check/basic.test.ts
Line 11 in c4485c6
Rolldown does not resolve the id
/dist/generated.jsinto a full file path and fails inloadAndTransformfunction. Looks like, it is stored with an incorrectfileproperty 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
Looks like SSR transform behaves differently because the coverage has no
functions:The module looks like this:
New issues will be added
Reproduction
https://github.com/vitest-dev/vitest
System Info
Used Package Manager
pnpm
Validations