mirror of
https://github.com/status-im/status-web.git
synced 2025-01-10 12:46:14 +00:00
84ec492292
* hide sidebar on small screen * add reply component * add radix dependencies * add dropdown menu component * add popover component * add tooltip component * add react button component * add reaction popover * update chat message actions * add basic dialog and sheet components * add ref to Button component * add chat message reactions * add reply and reactions to chat message * remove console.log * add dropdown menu to topbar * add ref and support aria in IconButton * yarn.lock * add stylesheet reset to storybook * add pinned state to message * remove extraneous component * add all button variants * fix button icons * use IconButton in actions * remove erroneous character * add reply to composer + simplify * use correct button in reply
49 lines
1023 B
TypeScript
49 lines
1023 B
TypeScript
/// <reference types="vitest" />
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
import { peerDependencies } from './package.json'
|
|
|
|
const external = [
|
|
'tamagui',
|
|
// ...Object.keys(dependencies || {}),
|
|
...Object.keys(peerDependencies || {}),
|
|
].map(name => new RegExp(`^${name}(/.*)?`))
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
return {
|
|
build: {
|
|
target: 'es2020',
|
|
lib: {
|
|
entry: [
|
|
'./src/12/index.ts',
|
|
'./src/16/index.ts',
|
|
'./src/20/index.ts',
|
|
'./src/reactions/index.ts',
|
|
],
|
|
fileName(format, entryName) {
|
|
// const [name] = entryName.split('/')
|
|
return `icons-${entryName}.${format}.js`
|
|
},
|
|
formats: ['es'],
|
|
},
|
|
sourcemap: true,
|
|
emptyOutDir: mode === 'production',
|
|
rollupOptions: {
|
|
external,
|
|
},
|
|
},
|
|
|
|
plugins: [react()],
|
|
|
|
// plugins: [
|
|
// react(),
|
|
// ],
|
|
|
|
test: {
|
|
environment: 'happy-dom',
|
|
},
|
|
}
|
|
})
|