Skip to content

Commit

Permalink
chore(clerk-js): Add GoogleOneTap to bundlewatch
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Aug 27, 2024
1 parent b20e28b commit a233b4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-crabs-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/clerk-js": patch
---

Change the webpackChunkName of GoogleOneTap from `"oneTap"` to `"onetap"` for consistency.
3 changes: 2 additions & 1 deletion packages/clerk-js/bundlewatch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{ "path": "./dist/signin*.js", "maxSize": "12KB" },
{ "path": "./dist/signup*.js", "maxSize": "10KB" },
{ "path": "./dist/userbutton*.js", "maxSize": "5KB" },
{ "path": "./dist/userprofile*.js", "maxSize": "15KB" }
{ "path": "./dist/userprofile*.js", "maxSize": "15KB" },
{ "path": "./dist/onetap*.js", "maxSize": "1KB" }
]
}
2 changes: 1 addition & 1 deletion packages/clerk-js/src/ui/lazyModules/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const componentImportPaths = {
import(/* webpackChunkName: "organizationswitcher" */ './../components/OrganizationSwitcher'),
OrganizationList: () => import(/* webpackChunkName: "organizationlist" */ './../components/OrganizationList'),
ImpersonationFab: () => import(/* webpackChunkName: "impersonationfab" */ './../components/ImpersonationFab'),
GoogleOneTap: () => import(/* webpackChunkName: "oneTap" */ './../components/GoogleOneTap'),
GoogleOneTap: () => import(/* webpackChunkName: "onetap" */ './../components/GoogleOneTap'),
} as const;

export const SignIn = lazy(() => componentImportPaths.SignIn().then(module => ({ default: module.SignIn })));
Expand Down

0 comments on commit a233b4a

Please sign in to comment.