Is it required to upload both .js and .map files?

Hi Sentry and community.

Our team has a question, that would be awesome to have some clarifications on. We are writing Node.js/typescript apps.

When we upload sourcemaps to Sentry, do we need to upload both .js and js.map files, or is it enough with only js.map files?

When I look in our js.map files, it seems like they actually include the source, so I lean twoards only uploading js.map - but some clarification here would be very helpfull :face_with_monocle:

Yes and no. If you want accurate hashing/information, you need access to the source. That said, some sourcemap generation techniques (seemingly including yours) include source bundles, which means you only need the map. It makes the file much larger which might cause other problems, but that’s generally the split.