mirror of
https://github.com/violettoolssite/CFspider.git
synced 2026-04-05 03:09:01 +08:00
fix: update zustand to 4.5.0, simplify vite config (v1.0.8)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cfspider-browser",
|
||||
"version": "1.0.7",
|
||||
"description": "CFspider 智能浏览器 - AI驱动的可视化爬虫,自然语言控制浏览器自动化",
|
||||
"version": "1.0.8",
|
||||
"description": "CFspider 智能浏览器 - AI驱动的浏览器,自然语言控制浏览器自动化",
|
||||
"keywords": [
|
||||
"browser",
|
||||
"automation",
|
||||
@@ -65,9 +65,8 @@
|
||||
"react-dom": "^18.2.0",
|
||||
"react-markdown": "^10.1.0",
|
||||
"react-syntax-highlighter": "^16.1.0",
|
||||
"use-sync-external-store": "^1.2.0",
|
||||
"xlsx": "^0.18.5",
|
||||
"zustand": "^4.4.7"
|
||||
"zustand": "^4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/file-saver": "^2.0.7",
|
||||
|
||||
@@ -7,22 +7,16 @@ export default defineConfig({
|
||||
base: './',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src'),
|
||||
'use-sync-external-store/shim/with-selector': 'use-sync-external-store/shim/with-selector.js'
|
||||
'@': resolve(__dirname, 'src')
|
||||
}
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['zustand', 'use-sync-external-store', 'use-sync-external-store/shim/with-selector'],
|
||||
esbuildOptions: {
|
||||
mainFields: ['module', 'main']
|
||||
}
|
||||
include: ['zustand'],
|
||||
exclude: ['use-sync-external-store']
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
commonjsOptions: {
|
||||
include: [/use-sync-external-store/, /node_modules/]
|
||||
}
|
||||
emptyOutDir: true
|
||||
},
|
||||
server: {
|
||||
port: 5173
|
||||
|
||||
Reference in New Issue
Block a user