Title: Convert to ES modules · Issue #1130 · getsentry/sentry-javascript · GitHub
Open Graph Title: Convert to ES modules · Issue #1130 · getsentry/sentry-javascript
X Title: Convert to ES modules · Issue #1130 · getsentry/sentry-javascript
Description: Do you want to request a feature or report a bug? Feature What is the current behavior? Library is exposed as a CommonJS module. What is the expected behavior? Library is exposed as ES6 module. Why do I want this behavior? I only want to...
Open Graph Description: Do you want to request a feature or report a bug? Feature What is the current behavior? Library is exposed as a CommonJS module. What is the expected behavior? Library is exposed as ES6 module. Why...
X Description: Do you want to request a feature or report a bug? Feature What is the current behavior? Library is exposed as a CommonJS module. What is the expected behavior? Library is exposed as ES6 module. Why...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/1130
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Convert to ES modules","articleBody":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nFeature\r\n\r\n**What is the current behavior?**\r\n\r\nLibrary is exposed as a CommonJS module.\r\n\r\n**What is the expected behavior?**\r\n\r\nLibrary is exposed as ES6 module.\r\n\r\n**Why do I want this behavior?**\r\n\r\nI only want to ship the raven-js library in the first few days after releasing a new feature. After that, I want to get rid of the 20KB raven-js library in order to improve the performance of my app.\r\n\r\nIn order to remove the 20KB raven-js library, I want to to use the webpack \"es6-tree-shaking/uglify-js-dead-code-removal\" feature.\r\n\r\n```js\r\nimport { Raven, RavenVue } from './es6/raven';\r\n\r\nif (FLAGS.SENTRY_ENABLE) {\r\n Raven.config(CONFIG.SENTRY_DSN).addPlugin(RavenVue, Vue).install();\r\n}\r\n```\r\n\r\nThis is only possible when using ES6 modules.\r\n\r\nAny plans on converting to es modules? Would you accept a PR?\r\n\r\nThanks for you feedback!\r\n","author":{"url":"https://github.com/jaylinski","@type":"Person","name":"jaylinski"},"datePublished":"2017-11-14T15:01:03Z","url":"https://github.com/getsentry/sentry-javascript/issues/1130"}
| 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:62c9250a-64e2-0024-a1cd-ef9e10eeb028 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE8C:18C3B1:56B9D4:796451:6B0481F0 |
| html-safe-nonce | 9c911a30476821943dba4fee0bbd58291ab35204279dac741c6a0a33eb37012c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERThDOjE4QzNCMTo1NkI5RDQ6Nzk2NDUxOjZCMDQ4MUYwIiwidmlzaXRvcl9pZCI6Ijk2MzA4MzUzNTMwNzI3Njc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6591f6545bd116178ffafadd3f97a3ec65fc4602403c348d7fa8394332c9c495 |
| hovercard-subject-tag | issue:273823170 |
| 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/1130/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c39bb3939bcdc223be0cdac7b093d0e4d1ac41f41ef73f9a37de79ee9c1afe5/getsentry/sentry-javascript/issues/1130 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c39bb3939bcdc223be0cdac7b093d0e4d1ac41f41ef73f9a37de79ee9c1afe5/getsentry/sentry-javascript/issues/1130 |
| og:image:alt | Do you want to request a feature or report a bug? Feature What is the current behavior? Library is exposed as a CommonJS module. What is the expected behavior? Library is exposed as ES6 module. Why... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaylinski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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