Title: Decrease the bundle size · Issue #1847 · clerk/javascript · GitHub
Open Graph Title: Decrease the bundle size · Issue #1847 · clerk/javascript
X Title: Decrease the bundle size · Issue #1847 · clerk/javascript
Description: Preliminary Checks I have reviewed https://clerk.com/docs for existing features that would solve my problem I have searched for existing feature requests: https://github.com/clerkinc/javascript/issues This issue is not a question, genera...
Open Graph Description: Preliminary Checks I have reviewed https://clerk.com/docs for existing features that would solve my problem I have searched for existing feature requests: https://github.com/clerkinc/javascript/iss...
X Description: Preliminary Checks I have reviewed https://clerk.com/docs for existing features that would solve my problem I have searched for existing feature requests: https://github.com/clerkinc/javascript/iss...
Opengraph URL: https://github.com/clerk/javascript/issues/1847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decrease the bundle size","articleBody":"### Preliminary Checks\r\n\r\n- [X] I have reviewed https://clerk.com/docs for existing features that would solve my problem\r\n\r\n- [X] I have searched for existing feature requests: https://github.com/clerkinc/javascript/issues\r\n\r\n- [X] This issue is not a question, general help request, or anything other than a feature request directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.\r\n\r\n\r\n### Description\r\n\r\nClerk is almost 50% of my bundle size. It's built with Vite and I only use it like this:\r\n```ts\r\nimport Clerk from \"@clerk/clerk-js\";\r\n\r\nexport const clerkClient = new Clerk(\r\n import.meta.env.VITE_APP_CLERK_PUBLISHABLE_KEY,\r\n);\r\n```\r\nIt would be nice to have the react clerk package export Clerk so that I can initialize the client outside of React, then I wouldn't need to install the `@clerk/clerk-js` package.\r\n\r\nThis report is generated using this rollup plugin https://www.npmjs.com/package/rollup-plugin-analyzer \r\n\r\n\r\n\r\n\r\n### Affected Packages\r\n\r\n@clerk/clerk-js","author":{"url":"https://github.com/langonja","@type":"Person","name":"langonja"},"datePublished":"2023-10-08T16:06:08Z","url":"https://github.com/clerk/javascript/issues/1847"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:fee99b82-483e-875e-a5c3-b08d9f6d1883 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDEA:32523A:D90A2:12D5CB:6AFB6A08 |
| html-safe-nonce | c5f3509d714b03ba20be1e48dc7527c02063e1e5b9e9778ba0651ab233cb589b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREVBOjMyNTIzQTpEOTBBMjoxMkQ1Q0I6NkFGQjZBMDgiLCJ2aXNpdG9yX2lkIjoiNjg0NTIwNDYwNTIzMzY2OTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b2ec3c443e1b5f6fee769c119ddca2b2013a5c9b93682dd6df9bb248b60c1088 |
| hovercard-subject-tag | issue:1931881766 |
| 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/clerk/javascript/1847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b8b04a07fe349f09a095e075d9ecb042be90661020b072e208404a756270407/clerk/javascript/issues/1847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b8b04a07fe349f09a095e075d9ecb042be90661020b072e208404a756270407/clerk/javascript/issues/1847 |
| og:image:alt | Preliminary Checks I have reviewed https://clerk.com/docs for existing features that would solve my problem I have searched for existing feature requests: https://github.com/clerkinc/javascript/iss... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | langonja |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/clerk/javascript git https://github.com/clerk/javascript.git |
| octolytics-dimension-user_id | 49538330 |
| octolytics-dimension-user_login | clerk |
| octolytics-dimension-repository_id | 438331492 |
| octolytics-dimension-repository_nwo | clerk/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438331492 |
| octolytics-dimension-repository_network_root_nwo | clerk/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 | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width