Buckets:
| /** @type {import('next').NextConfig} */ | |
| module.exports = { | |
| turbopack: { | |
| resolveAlias: { | |
| "react-native": "react-native-web", | |
| }, | |
| resolveExtensions: [ | |
| ".web.js", | |
| ".web.jsx", | |
| ".web.ts", | |
| ".web.tsx", | |
| ".mdx", | |
| ".tsx", | |
| ".ts", | |
| ".jsx", | |
| ".js", | |
| ".mjs", | |
| ".json", | |
| ], | |
| }, | |
| 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.jsx", | |
| ".web.ts", | |
| ".web.tsx", | |
| ...config.resolve.extensions, | |
| ]; | |
| return config; | |
| }, | |
| }; | |
Xet Storage Details
- Size:
- 740 Bytes
- Xet hash:
- ef12926d6d41ec2f6a9baaa316a58aefdd2b2352ba28a87bacf59e211510056c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.