import JXG from 'jsxgraph' is breaking the Vue/vite bundling process
Hi there,
It seems that this line:
import JXG from 'jsxgraph'
is breaking my build with vite.
Here is the error emitted during the build:

If I remove the import line it builds fine but of course the graph doesn't load.
Thank you very much for your helpful feedback. Can you please test the latest version? Either the main branch from github or release candidate 1.5.0-rc2 from npm:
npm install --save jsxgraph@next
Today - hopefully - all dependencies could be removed.
@rwmorton I had a similar issue in rc1 and it was fixed in rc2. @alfredwassermann FYI, rc2 fixed this issue for me.
Thank you for the feedback, I'm currently on a different project but will definitely try updating to see if this fixes the issue. Will report back if not!
Thanks guys, looks like upgrading to RC2 fixed it!