Title: Sentry Adds TypeScript Source Files to Production Bundle · Issue #2789 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry Adds TypeScript Source Files to Production Bundle · Issue #2789 · getsentry/sentry-javascript
X Title: Sentry Adds TypeScript Source Files to Production Bundle · Issue #2789 · getsentry/sentry-javascript
Description: 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 ...
Open Graph Description: 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-...
X Description: 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 sou...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/2789
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry Adds TypeScript Source Files to Production Bundle","articleBody":"**Package:** @sentry/browser, version 5.20.1\r\nWebpack configured by Create React App, using react-scripts version 3.4.1\r\n\r\n**Issue:** \r\nI'm trying to reduce my production bundle size by analyzing it with source-map-explorer.\r\n\r\nWith 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%\":\r\n\u003cimg width=\"1378\" alt=\"With Sentry\" src=\"https://user-images.githubusercontent.com/25951701/89001381-140e6000-d2c8-11ea-8661-5e31601c8071.png\">\r\n\r\nLooking inside that section of the bundle we see this:\r\n\u003cimg width=\"1370\" alt=\"TypeScript Files\" src=\"https://user-images.githubusercontent.com/25951701/89001388-1a044100-d2c8-11ea-9744-2fd8f9c8c9b1.png\">\r\n\r\nI know these files are coming from Sentry because when I remove the Sentry import, the files are all gone:\r\n\u003cimg width=\"1371\" alt=\"without Sentry\" src=\"https://user-images.githubusercontent.com/25951701/89001397-1e305e80-d2c8-11ea-90a5-a613f5d92b8b.png\">\r\n\r\nI 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.","author":{"url":"https://github.com/DouglasDev","@type":"Person","name":"DouglasDev"},"datePublished":"2020-07-31T04:50:55Z","url":"https://github.com/getsentry/sentry-javascript/issues/2789"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3b13565e-c5ae-fb45-6c2b-b28ed3eba539 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D6C:1C3A51:6B1E61:9153D9:6B044448 |
| html-safe-nonce | a1aad7fb59ba3b42a3d7e478489f3e10c4fa313f89d1d604f8a0f3e3aa09cefb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDZDOjFDM0E1MTo2QjFFNjE6OTE1M0Q5OjZCMDQ0NDQ4IiwidmlzaXRvcl9pZCI6IjQxOTEwNzc3MzgzMjY4MDM1MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5d261625415c7503a15113355c820af44bcf1a3abf73e952c2ed514881f52ee9 |
| hovercard-subject-tag | issue:669409277 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/2789/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0fa4b8d12bc387225d7869b22b2e6198e2efd4ea074de223bc7b3cc22ef33a99/getsentry/sentry-javascript/issues/2789 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0fa4b8d12bc387225d7869b22b2e6198e2efd4ea074de223bc7b3cc22ef33a99/getsentry/sentry-javascript/issues/2789 |
| og:image:alt | 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-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DouglasDev |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width