I believe understand the syntactic differences between require
and import
. I extensively use import
with default or partial module dependencies. However in the react-native
main codebase require it is still being used.
I'd like to implement some kind of lazy-load or at least make the application loading faster, and I understand there might be some relationship between how modules are packed / imported and used to load module chunks into memory.
Can someone shed some light on this?