Skip to content

feat: add synchronous getJsBundlePath to Nitro module#24

Closed
huhuanming wants to merge 2 commits intomainfrom
feat/sync-getJsBundlePath
Closed

feat: add synchronous getJsBundlePath to Nitro module#24
huhuanming wants to merge 2 commits intomainfrom
feat/sync-getJsBundlePath

Conversation

@huhuanming
Copy link
Contributor

@huhuanming huhuanming commented Mar 4, 2026

Summary

  • Add synchronous getJsBundlePath(): string to the Nitro BundleUpdate module (iOS + Android)
  • Rename the existing async version to getJsBundlePathAsync(): Promise<string>, matching the getWebEmbedPath / getWebEmbedPathAsync pattern
  • Needed by polyfillsPlatform.js which runs synchronously at module load time to resolve asset paths after hot update
  • Bump version to 1.1.25

Test plan

  • Verify getJsBundlePath() returns correct main.jsbundle.hbc path on iOS
  • Verify getJsBundlePath() returns correct main.jsbundle.hbc path on Android
  • Verify asset resolution works after bundle hot update (images/icons load correctly)
  • Verify getJsBundlePathAsync() still works in existing async call sites

Open with Devin

…hAsync

Nitro module now exposes a synchronous getJsBundlePath() alongside
the async getJsBundlePathAsync(), matching the getWebEmbedPath pattern.
This is needed for polyfillsPlatform.js which runs at module load time.
@huhuanming huhuanming force-pushed the feat/sync-getJsBundlePath branch from 9c7b9fe to 830ffe6 Compare March 4, 2026 03:37
@huhuanming huhuanming force-pushed the feat/sync-getJsBundlePath branch from 830ffe6 to 87caf5d Compare March 4, 2026 03:38
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@huhuanming huhuanming closed this Mar 4, 2026
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.

1 participant