You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package: @sentry/browser, version 5.20.1
Webpack configured by Create React App, using react-scripts version 3.4.1
Issue:
I'm trying to reduce my production bundle size by analyzing it with source-map-explorer.
With Sentry imported into my project, The node modules bundle includes several TypeScript source files. See the bottom of this image where it says "64.51 KB - 3.6%":
Looking inside that section of the bundle we see this:
I know these files are coming from Sentry because when I remove the Sentry import, the files are all gone:
I can't think of any reason why these files should be in the bundle output, and I'm not having this issue with any other packages I'm using. Any suggestions on how to remove these files from the bundle would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
DouglasDev
changed the title
Sentry adds TypeScript Source Files to Production Bundle
Sentry Adds TypeScript Source Files to Production Bundle
Jul 31, 2020
@DouglasDev I haven't checked this in detail but I am 99.9% sure we are not adding the TS files. You are using the source map navigator plugin which if your source maps are correct, points to the ts files instead of the complied js files.
Package: @sentry/browser, version 5.20.1
Webpack configured by Create React App, using react-scripts version 3.4.1
Issue:
I'm trying to reduce my production bundle size by analyzing it with source-map-explorer.
With Sentry imported into my project, The node modules bundle includes several TypeScript source files. See the bottom of this image where it says "64.51 KB - 3.6%":

Looking inside that section of the bundle we see this:

I know these files are coming from Sentry because when I remove the Sentry import, the files are all gone:

I can't think of any reason why these files should be in the bundle output, and I'm not having this issue with any other packages I'm using. Any suggestions on how to remove these files from the bundle would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: