Zustand 库打包支持浏览器
使用webpack打包,可以参考lib项目
import { create } from "zustand"; (<any>window).Zustand = { create: create, };