mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-03 07:03:30 +00:00
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:
parent
18397f902f
commit
3878f0aa6b
@ -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"
|
||||
},
|
||||
|
@ -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
|
||||
|
@ -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',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user