Hi, I am using NebulaGL in my web application. I am running into issues when importing NebulaGL (directly or indirectly) in unit testing frameworks which execute code using NodeJS (vitest in particular) because the package.json for nebula.gl (as well as for @nebula.gl/*):
both does not contain "type": "module"and does not specify exports
Describe the bug
Hi, I am using NebulaGL in my web application. I am running into issues when importing NebulaGL (directly or indirectly) in unit testing frameworks which execute code using NodeJS (
vitest
in particular) because the package.json fornebula.gl
(as well as for@nebula.gl/*
):"type": "module"
and does not specifyexports
This is also clear when checking
nebula.gl
in Publint: https://publint.dev/nebula.gl@1.1.0-alpha.5Note: This issue is also related to this one in DeckGL https://github.com/visgl/deck.gl/issues/8186
Actual Result
Expected Result
Expect unit tests to pass when importing something from NebulaGL.
Reproduce Steps
https://stackblitz.com/edit/vitejs-vite-csquxp?file=package.json
Run
npm run test
in the terminal on StackblitzScreenshots
To Do List