mirror of
https://github.com/graphql-hive/console
synced 2026-05-21 16:18:31 +00:00
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com> Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com> Co-authored-by: Laurin Quast <laurinquast@googlemail.com> Co-authored-by: Dotan Simha <dotansimha@gmail.com>
22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
import { resolve } from 'node:path';
|
|
import type { UserConfig } from 'vite';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const __dirname = new URL('.', import.meta.url).pathname;
|
|
|
|
export default {
|
|
root: __dirname,
|
|
plugins: [tsconfigPaths(), react()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'index.html'),
|
|
['preflight-worker-embed']: resolve(__dirname, 'preflight-worker-embed.html'),
|
|
},
|
|
output: {
|
|
entryFileNames: '[name].js',
|
|
},
|
|
},
|
|
},
|
|
} satisfies UserConfig;
|