#6441·rollup

`this.getModuleInfo(moduleId).meta` is an empty object when `this.load` is called in `shouldTransformCachedModule`

Author: sapphi-redCreated Jul 8, 2026Updated Jul 8, 2026
Labelst¹ 🐞 bugt⁸ ⋅ triage

Rollup Version

4.62.2

Operating System (or Browser)

StackBlitz

Node Version (if applicable)

No response

Link To Reproduction

https://stackblitz.com/edit/rollup-repro-6edwwvwm?file=package.json,rollup.config.js,src%2Fcounter.js

Expected Behaviour

When editing counter.js while npm run build:watch is running, the value set by the setModuleInfoPlugin plugin exists in info?.meta?.foo and the rebuild does not fail.

Actual Behaviour

When editing counter.js while npm run build:watch is running, the value set by the setModuleInfoPlugin plugin is missing in info?.meta?.foo and the rebuild fails.

Additional Information

This is a reduced reproduction of https://github.com/vitejs/vite/issues/20591