Skip to content

chore: split libphonenumber-js into a separate chunk - #269

Open
arisuryaa wants to merge 1 commit into
mainfrom
chore/split-libphonenumber-into-a-separate-chunk
Open

chore: split libphonenumber-js into a separate chunk#269
arisuryaa wants to merge 1 commit into
mainfrom
chore/split-libphonenumber-into-a-separate-chunk

Conversation

@arisuryaa

Copy link
Copy Markdown
Contributor
  • add manualChunks to esm-bundled output config in sdk/build.ts

* add manualChunks to esm-bundled output config in sdk/build.ts
@arisuryaa
arisuryaa requested a review from a team as a code owner August 23, 2026 15:36
@arisuryaa
arisuryaa requested review from seanyu4296 and yanoandri and removed request for seanyu4296 and yanoandri August 23, 2026 15:36
@simon-paris

Copy link
Copy Markdown
Contributor

Does this allow initialization before the chunk loads?

I don't think it does, since its using synchronous imports. It looks like this just delays startup because now it needs to separately fetch libphonenumber before the main import resolved.

Can you change it to an async import and trigger it to load at the same time the session is being loaded?

@arisuryaa
arisuryaa requested a review from simon-paris August 24, 2026 06:17
@arisuryaa

Copy link
Copy Markdown
Contributor Author

Yeah the loading process is still synchronous, Okay, Simon, I'll try changing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants