sentry-electron icon indicating copy to clipboard operation
sentry-electron copied to clipboard

How to upload sourcemaps when building with vite and having several config files?

Open sbalay opened this issue 6 months ago • 3 comments

Not sure if this is the right place to ask questions, please let me know if that's not the case.

I'm following the guide to upload sourcemaps when building with vite, but that guide assumes that there's a single vite config file.

Nowadays, most projects probably have 3 vite config files: main, preload and renderer.

How should the vite plugin be configured in those cases? Should I just add the plugin to all config files and assume it's going to work?

sbalay avatar Apr 22 '25 08:04 sbalay