实时对局选你的对手
加入
0e1d7fa
21 行 · 680 Bytes 原始文件 永久链接 历史
1// The engine bundle: one ES module for Node 20+, with every skill module the engine imports lazily inlined
2// (codeSplitting: false, as the upstream's vite.mcp.config.ts does for its MCP server).
3import { defineConfig } from 'vite';
4import { upstreamFixes } from './upstream-fixes';
5
6export default defineConfig({
7 plugins: [upstreamFixes()],
8 publicDir: false,
9 build: {
10 lib: { entry: 'shoal/sgs.ts', formats: ['es'], fileName: () => 'sgs.mjs' },
11 outDir: 'dist/shoal-engine',
12 emptyOutDir: true,
13 minify: false,
14 sourcemap: false,
15 target: 'node20',
16 rollupOptions: {
17 external: [/^node:/],
18 output: { codeSplitting: false },
19 },
20 },
21});