Details
-
Type:
Bug
-
Status: Closed
-
Priority:
None
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 10.0.0
-
Component/s: iOS
-
Labels:
-
Sprint:2020 Sprint 21, 2020 Sprint 22, 2020 Sprint 23, 2020 Sprint 24, 2020 Sprint 25, 2020 Sprint 26, 2021 Sprint 1
Description
While Android's require implementation is able to handle circular references - iOS is not.
This is due to the underlying implementations - where Android is written in JS and mimics Node.js, while iOS is native. There's multiple possible solutions here:
- Use rollup under the hood on apps as part of our build process.
- Migrate iOS to use a shared require implementation with Android
I personally prefer the second, but it'd take some re-architecting of how iOS starts up - and it's unclear to me how we'd tweak Android to use a require implementation under common rather than the one baked into the the runtime (the JS is baked in as bytes and executed early).
Attachments
Issue Links
- relates to
-
TIMOB-25768 Use rollup to avoid circular references with ES6 imports in JavascriptCore
-
- Closed
-
-
TIMOB-28037 iOS: Relative path require not working with node_modules
-
- Closed
-