about summary refs log tree commit diff
path: root/babel.config.js
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-10-27 01:54:15 +0100
committerGitHub <noreply@github.com>2023-10-26 17:54:15 -0700
commit46f3265936d9f0289ce047b1c6d6ca58b1a48d32 (patch)
tree9c22ce3147255954e7700116f40d51fe1fccd176 /babel.config.js
parenta1a61ef2e5d9d36877c7078580572ae70e468a4a (diff)
downloadvoidsky-46f3265936d9f0289ce047b1c6d6ca58b1a48d32.tar.zst
Enable inline requires (#1756)
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js
index 706fdff5c..a38edf1d6 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,7 +1,14 @@
 module.exports = function (api) {
   api.cache(true)
   return {
-    presets: ['babel-preset-expo'],
+    presets: [
+      [
+        'babel-preset-expo',
+        {
+          lazyImports: true,
+        },
+      ],
+    ],
     plugins: [
       [
         'module:react-native-dotenv',