-
We are currently running a React host app that are integrating a number of microfrontends. I can't figure out how to handle source maps correctly. The source maps from the host app is uploaded using the SentryWebpackPlugin and works just fine, but the source code for the microfrontends are all minified. What do I do with the source maps of each of the microfrontends? Do I upload each artifact to the one project in Sentry, together with the host app source maps? Do I need to tag the release with the same name across all artifacts? I've checked the documentation here, but it only describes how to route events to other projects, not how to handle the source maps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ideally you use the newest version of the webpack plugin to upload sourcemaps for all of the individual MFEs to the same project. Make sure to use the debug ID process, otherwise this is gonna be painful af. |
Beta Was this translation helpful? Give feedback.
The source files need to contain debug ID snippets and the the .js files and .js.map files that you generate need to be uploaded. Those are the only requirements. In theory, the way you have the webpack plugin set up, this should already be the case. Just make sure all your webpack plugins are pointing to the same
project
and you're also using the same DSN (pointing to theproject
) for all of the MFEs.