3.0
Publish to npm / publish (push) Failing after 29s

This commit is contained in:
2026-04-08 01:07:10 +08:00
parent c100973590
commit d44938e456
17 changed files with 1574 additions and 1366 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from 'vite'
export default defineConfig({
build: {
outDir: 'dist',
emptyOutDir: true,
lib: {
entry: 'src/simapi.core.ts',
name: 'SimApiCore',
formats: ['es', 'cjs'],
fileName: (format) => `index.${format === 'es' ? 'mjs' : 'cjs'}`
},
rollupOptions: {
// 不再需要 external,使用原生 fetch
}
}
})