Created
May 2, 2021 02:26
-
-
Save marklawlor/87bc765517fd23fb541161093338c8dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
presets: ["next/babel"], | |
plugins: [["react-native-web", { commonjs: true }]], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { withExpo } = require("@expo/next-adapter"); | |
const withTM = require("next-transpile-modules")([ | |
"@shared/components", | |
"react-native", | |
"@expo/next-adapter", | |
"expo-status-bar", | |
"react-native-web", | |
]); | |
const withPlugins = require("next-compose-plugins"); | |
module.exports = withPlugins([withTM, withExpo], { | |
projectRoot: __dirname, | |
future: { | |
webpack5: true, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment