Importing rollbar in vite project causing blank screen
I’m trying to import rollbar package in react-ts template of vite, but getting blank screen. There are no errors on the console. I tried to both include and exclude rollbar in optimizeDeps, add commonjs plugin, change the resolving file to something else, but those didn’t help.
Here is an example project: https://stackblitz.com/edit/vitejs-vite-xmnzvy?file=src%2Fmain.tsx