This commit is contained in:
DrSmoothl committed 2026-10-12 15:43:34 +08:00
1 parent effeb66554
commit 7c0519f75f
977 files changed
+198426 -158324

No files matched your search

+11 -11
View File
@@ -4,16 +4,16 @@ import protobufVitePlugin from '@snowluma/proton/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
// proton's vite plugin inlines `protobuf_encode<T>` / `protobuf_decode<T>`
// call sites at build time. Required for both tests and benchmarks
// to hit the production code path rather than proton's runtime
// fallback (which throws unless a runtime-map JSON is loaded).
plugins: [protobufVitePlugin()],
test: {
include: ['tests/**/*.test.ts'],
benchmark: {
include: ['bench/**/*.bench.ts'],
// proton's vite plugin inlines `protobuf_encode<T>` / `protobuf_decode<T>`
// call sites at build time. Required for both tests and benchmarks
// to hit the production code path rather than proton's runtime
// fallback (which throws unless a runtime-map JSON is loaded).
plugins: [protobufVitePlugin()],
test: {
include: ['tests/**/*.test.ts'],
benchmark: {
include: ['bench/**/*.bench.ts'],
},
environment: 'node',
},
environment: 'node',
},
});