fix local development

This commit is contained in:
Pavel Prichodko 2023-03-14 13:48:09 +01:00
parent 24df67ad33
commit 1fac364ffe
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
5 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,7 @@
import { useMemo, useRef, useState } from 'react'
import {
CHANNEL_GROUPS,
Composer,
Messages,
Sidebar,
@ -10,7 +11,6 @@ import {
useAppState,
} from '@status-im/components'
import { useBlur } from '@status-im/components/hooks'
import { CHANNEL_GROUPS } from '@status-im/components/src/sidebar/mock-data'
const COMMUNITY = {
name: 'Rarible',

View File

@ -1,5 +1,6 @@
import { tamaguiPlugin } from '@tamagui/vite-plugin'
import react from '@vitejs/plugin-react-swc'
import path from 'path'
import { defineConfig } from 'vite'
import type { PluginOption } from 'vite'
@ -13,15 +14,23 @@ const tamaguiConfig = {
// useReactNativeWebLite: true,
}
// https://vitejs.dev/config
// @see: https://vitejs.dev/config
export default defineConfig({
resolve: {
// mainFields: ['module', 'jsnext:main', 'jsnext'],
alias: {
'@status-im/components/hooks': path.resolve(
'../../packages/components/hooks'
),
'@status-im/components': path.resolve('../../packages/components/src'),
},
},
define: {
TAMAGUI_TARGET: JSON.stringify('web'),
},
plugins: [
react(),
tamaguiPlugin(tamaguiConfig) as PluginOption,
// BUG
// tamaguiExtractPlugin(tamaguiConfig)
],
})

View File

@ -5,9 +5,11 @@
"*.css"
],
"private": true,
"#module": "./src/index.tsx",
"types": "./src/index.tsx",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"#types": "./dist/types/index.d.ts",
"files": [
"types",
"dist"

View File

@ -13,5 +13,8 @@ export * from './topbar'
export * from './typography'
export * from './user-list'
// MOCK DATA
export { CHANNEL_GROUPS } from './sidebar/mock-data'
// eslint-disable-next-line simple-import-sort/exports
export { config } from './tamagui.config'

View File

@ -1,8 +1,6 @@
{
"name": "@status-im/icons",
"version": "0.0.1",
"types": "src/index.tsx",
"main": "src/index.tsx",
"private": true,
"files": [
"types",