UNPKG
@jingoz/zlight
Version:
latest (0.0.1)
0.0.1
一个轻量级的仿 zustand 的 React 状态管理库
@jingoz/zlight
/
vite.config.ts
16 lines
(14 loc)
•
294 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
type
{
UserConfig
}
from
'vite'
export
default
{
build
: {
outDir
:
'build'
,
rollupOptions
: {
external
: [
'react'
,
'react-dom'
], },
lib
: {
name
:
'zlight'
,
entry
:
'lib/index.ts'
,
fileName
:
'index'
, }, }, }
satisfies
UserConfig