Skip to content

Instantly share code, notes, and snippets.

@marklawlor
Created April 21, 2021 23:23
Show Gist options
  • Save marklawlor/9aa8cb4fe0c8d773c3a004a30873253a to your computer and use it in GitHub Desktop.
Save marklawlor/9aa8cb4fe0c8d773c3a004a30873253a to your computer and use it in GitHub Desktop.
diff --git a/node_modules/babel-preset-expo/index.js b/node_modules/babel-preset-expo/index.js
index 1022490..08c8182 100644
--- a/node_modules/babel-preset-expo/index.js
+++ b/node_modules/babel-preset-expo/index.js
@@ -31,6 +31,8 @@ module.exports = function(api, options = {}) {
// Reference: https://github.com/expo/expo/pull/4685#discussion_r307143920
require('metro-react-native-babel-preset'),
{
+ dev: platform === 'web',
+ useTransformReactJsxExperimental: platform === 'web',
disableImportExportTransform: platformOptions.disableImportExportTransform,
lazyImportExportTransform:
lazyImportsOption === true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment