fix local development
This commit is contained in:
parent
10ddbfb692
commit
6e963e68e4
|
@ -1,6 +1,7 @@
|
||||||
import { useMemo, useRef, useState } from 'react'
|
import { useMemo, useRef, useState } from 'react'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
CHANNEL_GROUPS,
|
||||||
Composer,
|
Composer,
|
||||||
Messages,
|
Messages,
|
||||||
Sidebar,
|
Sidebar,
|
||||||
|
@ -10,7 +11,6 @@ import {
|
||||||
useAppState,
|
useAppState,
|
||||||
} from '@status-im/components'
|
} from '@status-im/components'
|
||||||
import { useBlur } from '@status-im/components/hooks'
|
import { useBlur } from '@status-im/components/hooks'
|
||||||
import { CHANNEL_GROUPS } from '@status-im/components/src/sidebar/mock-data'
|
|
||||||
|
|
||||||
const COMMUNITY = {
|
const COMMUNITY = {
|
||||||
name: 'Rarible',
|
name: 'Rarible',
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { tamaguiPlugin } from '@tamagui/vite-plugin'
|
import { tamaguiPlugin } from '@tamagui/vite-plugin'
|
||||||
import react from '@vitejs/plugin-react-swc'
|
import react from '@vitejs/plugin-react-swc'
|
||||||
|
import path from 'path'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
|
|
||||||
import type { PluginOption } from 'vite'
|
import type { PluginOption } from 'vite'
|
||||||
|
@ -13,15 +14,23 @@ const tamaguiConfig = {
|
||||||
// useReactNativeWebLite: true,
|
// useReactNativeWebLite: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://vitejs.dev/config
|
// @see: https://vitejs.dev/config
|
||||||
export default defineConfig({
|
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: {
|
define: {
|
||||||
TAMAGUI_TARGET: JSON.stringify('web'),
|
TAMAGUI_TARGET: JSON.stringify('web'),
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
tamaguiPlugin(tamaguiConfig) as PluginOption,
|
tamaguiPlugin(tamaguiConfig) as PluginOption,
|
||||||
// BUG
|
|
||||||
// tamaguiExtractPlugin(tamaguiConfig)
|
// tamaguiExtractPlugin(tamaguiConfig)
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
|
@ -5,9 +5,11 @@
|
||||||
"*.css"
|
"*.css"
|
||||||
],
|
],
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"#module": "./src/index.tsx",
|
||||||
|
"types": "./src/index.tsx",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/types/index.d.ts",
|
"#types": "./dist/types/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"types",
|
"types",
|
||||||
"dist"
|
"dist"
|
||||||
|
|
|
@ -13,5 +13,8 @@ export * from './topbar'
|
||||||
export * from './typography'
|
export * from './typography'
|
||||||
export * from './user-list'
|
export * from './user-list'
|
||||||
|
|
||||||
|
// MOCK DATA
|
||||||
|
export { CHANNEL_GROUPS } from './sidebar/mock-data'
|
||||||
|
|
||||||
// eslint-disable-next-line simple-import-sort/exports
|
// eslint-disable-next-line simple-import-sort/exports
|
||||||
export { config } from './tamagui.config'
|
export { config } from './tamagui.config'
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@status-im/icons",
|
"name": "@status-im/icons",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"types": "src/index.tsx",
|
|
||||||
"main": "src/index.tsx",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"files": [
|
"files": [
|
||||||
"types",
|
"types",
|
||||||
|
|
Loading…
Reference in New Issue