Skip to content

Commit d19e78d

Browse files
fix(clerk-js): Correct chunk loading logic in clerk.headless.browser variant (clerk#3062) (clerk#3063)
(cherry picked from commit d1dc44c) Co-authored-by: Lennart <lekoarts@gmail.com>
1 parent d628161 commit d19e78d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.changeset/lazy-games-destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Correct chunk loading logic in `clerk.headless.browser` variant

packages/clerk-js/src/index.headless.browser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// It's crucial this is the first import,
2+
// otherwise chunk loading will not work
3+
// eslint-disable-next-line
4+
import './utils/setWebpackChunkPublicPath';
5+
16
import 'regenerator-runtime/runtime';
27

38
import Clerk from './core/clerk';

0 commit comments

Comments
 (0)