From a233b4a38ab1736f7ea7760f8229e4a7bc0f7664 Mon Sep 17 00:00:00 2001 From: panteliselef Date: Tue, 27 Aug 2024 22:50:43 +0300 Subject: [PATCH] chore(clerk-js): Add GoogleOneTap to bundlewatch --- .changeset/gorgeous-crabs-judge.md | 5 +++++ packages/clerk-js/bundlewatch.config.json | 3 ++- packages/clerk-js/src/ui/lazyModules/components.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/gorgeous-crabs-judge.md diff --git a/.changeset/gorgeous-crabs-judge.md b/.changeset/gorgeous-crabs-judge.md new file mode 100644 index 0000000000..b8200987ea --- /dev/null +++ b/.changeset/gorgeous-crabs-judge.md @@ -0,0 +1,5 @@ +--- +"@clerk/clerk-js": patch +--- + +Change the webpackChunkName of GoogleOneTap from `"oneTap"` to `"onetap"` for consistency. diff --git a/packages/clerk-js/bundlewatch.config.json b/packages/clerk-js/bundlewatch.config.json index 0fc1a685a5..c155e90dd4 100644 --- a/packages/clerk-js/bundlewatch.config.json +++ b/packages/clerk-js/bundlewatch.config.json @@ -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" } ] } diff --git a/packages/clerk-js/src/ui/lazyModules/components.ts b/packages/clerk-js/src/ui/lazyModules/components.ts index 5cac14588f..731a7f9802 100644 --- a/packages/clerk-js/src/ui/lazyModules/components.ts +++ b/packages/clerk-js/src/ui/lazyModules/components.ts @@ -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 })));