diff --git a/examples/with-react-native-web/next.config.js b/examples/with-react-native-web/next.config.js index b50f6d4b945cb94..cb7efa483410d26 100644 --- a/examples/with-react-native-web/next.config.js +++ b/examples/with-react-native-web/next.config.js @@ -1,16 +1,16 @@ module.exports = { - webpack: (config) => { + webpack: config => { config.resolve.alias = { ...(config.resolve.alias || {}), // Transform all direct `react-native` imports to `react-native-web` 'react-native$': 'react-native-web', } config.resolve.extensions = [ - ".web.js", - ".web.ts", - ".web.tsx", + '.web.js', + '.web.ts', + '.web.tsx', ...config.resolve.extensions, - ]; + ] return config }, }