Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
1import { defineConfig } from 'vite';
2import path from 'path';
3import preact from '@preact/preset-vite';
4
5export default defineConfig({
6 plugins: [preact()],
7 resolve: {
8 alias: {
9 graphql: path.resolve('..', '..'),
10 },
11 },
12 build: {
13 outDir: './dist-lite',
14 rollupOptions: {
15 preserveSymlinks: true,
16 output: {
17 entryFileNames: `assets/[name].js`,
18 chunkFileNames: `assets/[name].js`,
19 assetFileNames: `assets/[name].[ext]`,
20 },
21 },
22 },
23});