about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-10-30 17:50:31 -0700
committerPaul Frazee <pfrazee@gmail.com>2023-10-30 17:50:31 -0700
commit9f33badffff4bc60f31d184e7b469f8697fb4dae (patch)
tree415500372b317cf3ff714edb669caf555275982d
parente18e7ce34a1554f23826cdec510bf217bbedee43 (diff)
parent515c9d5529e85d1be993cfd5895084a48b4af253 (diff)
downloadvoidsky-9f33badffff4bc60f31d184e7b469f8697fb4dae.tar.zst
Merge branch 'main' of github.com:bluesky-social/social-app into main
-rw-r--r--babel.config.js3
-rw-r--r--patches/babel-preset-expo+9.5.2.patch14
2 files changed, 17 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js
index 0baec0c3c..78edf5749 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -8,6 +8,9 @@ module.exports = function (api) {
         {
           lazyImports: true,
           native: {
+            // We should be able to remove this after upgrading Expo
+            // to a version that includes https://github.com/expo/expo/pull/24672.
+            unstable_transformProfile: 'hermes-stable',
             // Disable ESM -> CJS compilation because Metro takes care of it.
             // However, we need it in Jest tests since those run without Metro.
             disableImportExportTransform: !isTestEnv,
diff --git a/patches/babel-preset-expo+9.5.2.patch b/patches/babel-preset-expo+9.5.2.patch
new file mode 100644
index 000000000..5e328c224
--- /dev/null
+++ b/patches/babel-preset-expo+9.5.2.patch
@@ -0,0 +1,14 @@
+diff --git a/node_modules/babel-preset-expo/index.js b/node_modules/babel-preset-expo/index.js
+index 2099ee3..2b9e092 100644
+--- a/node_modules/babel-preset-expo/index.js
++++ b/node_modules/babel-preset-expo/index.js
+@@ -105,7 +105,8 @@ module.exports = function (api, options = {}) {
+       ],
+     ],
+     plugins: [
+-      getObjectRestSpreadPlugin(),
++      // - dan: This will be disabled anyway when we upgrade Expo, but let's do it now.
++      // getObjectRestSpreadPlugin(),
+       ...extraPlugins,
+       getAliasPlugin(),
+       [require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],