Reproduces issue with generated bundle of roslib.js.
When running npm run dev (i.e. vite in dev mode), the imported module
.vite/deps/roslib.js imports ./RosLib-xxx.js which attempts to import
./roslib.js again. This leads to the import failing withundefined is not a function.
Setting rolldown to 1.0.0 with the below resolves the issue.
"overrides":{
"rolldown": "1.0.0"
}The issue only appears to happen with vite dev, not with vite build.