mirror of
https://github.com/n30nex/CartoLite-Server.git
synced 2026-10-17 04:59:53 +00:00
* Bring CartoLite visuals and recovery to the worldwide server with Netgraph * Remove remaining country-overlay cleanup references * Align the CI container identity with the integration checks * Exercise worldwide grid areas in the large-topology benchmark
25 lines
600 B
TypeScript
25 lines
600 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
function inputPath(relative: string): string {
|
|
const pathname = decodeURIComponent(new URL(relative, import.meta.url).pathname);
|
|
return /^\/[A-Za-z]:\//.test(pathname) ? pathname.slice(1) : pathname;
|
|
}
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
target: 'es2022',
|
|
assetsInlineLimit: 0,
|
|
chunkSizeWarningLimit: 500,
|
|
rolldownOptions: {
|
|
input: {
|
|
main: inputPath('index.html'),
|
|
netgraph: inputPath('netgraph/index.html')
|
|
}
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.test.ts']
|
|
}
|
|
});
|