Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose menu: Use newly-standard "dynamic import" instead of "require".
This reached Stage 4 in the TC39 process a few months ago: https://github.com/tc39/proposal-dynamic-import/ And we already have the Babel plugin for it enabled, via the `metro-react-native-babel-preset` package. So, use it to replace the nonstandard `require` borrowed from Node, making it more visibly parallel to the usual static `import`. Suggested-by: Anders Kaseorg <anders@zulipchat.com>
- Loading branch information