Skip to content

Instantly share code, notes, and snippets.

@marklawlor
Created May 2, 2021 02:26
Show Gist options
  • Save marklawlor/87bc765517fd23fb541161093338c8dc to your computer and use it in GitHub Desktop.
Save marklawlor/87bc765517fd23fb541161093338c8dc to your computer and use it in GitHub Desktop.
module.exports = {
presets: ["next/babel"],
plugins: [["react-native-web", { commonjs: true }]],
};
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