ci: make build work

This involved adding more react native stuff instead of removing, which
I'm not super happy about.
This commit is contained in:
Rickard Andersson 2023-08-07 10:47:22 +03:00
parent 18397f902f
commit 3878f0aa6b
4 changed files with 1684 additions and 3301 deletions

View File

@ -18,14 +18,15 @@
},
"dependencies": {
"@status-im/components": "^0.2.6",
"@status-im/react": "^0.1.1",
"@tamagui/config": "1.36.4",
"@tamagui/react-17-patch": "1.36.4",
"@tamagui/vite-plugin": "1.36.4",
"@types/react": "18",
"@types/react-dom": "18",
"expo-modules-core": "^1.5.9",
"react": "18",
"react-dom": "18",
"react-native": "^0.72.3",
"react-native-svg": "^13.10.0",
"tamagui": "1.36.4"
},

View File

@ -1,6 +1,9 @@
import { config } from '@tamagui/config'
import { Text, View } from 'react-native'
import { createTamagui } from 'tamagui' // or '@tamagui/core'
import { createTamagui, setupReactNative } from '@tamagui/core'
setupReactNative({ Text, View })
const appConfig = createTamagui(config)
export type AppConfig = typeof appConfig

View File

@ -1,6 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const extensions = ['.web.js', '.web.ts', '.web.tsx', '.js', '.jsx', '.json', '.ts', '.tsx', '.mjs']
export default defineConfig({
plugins: [react()],
define: {
@ -9,23 +11,14 @@ export default defineConfig({
'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
},
resolve: {
extensions,
alias: {
'react-native': 'react-native-web',
},
},
optimizeDeps: {
esbuildOptions: {
resolveExtensions: [
'.web.js',
'.web.ts',
'.web.tsx',
'.js',
'.jsx',
'.json',
'.ts',
'.tsx',
'.mjs',
],
resolveExtensions: extensions,
loader: {
'.js': 'jsx',
},

4962
yarn.lock

File diff suppressed because it is too large Load Diff