/ proof-of-concept / instrawave-compose
Sign in
proof-of-concept / instrawave-compose
instrawave-compose / vite.config.ts
15 lines · 581 BBlameHistoryRaw
1import { defineConfig } from 'vite';
2import { realpathSync } from 'node:fs';
3import { resolve } from 'node:path';
5// instrawave is a file: dependency on the sibling checkout (the vault
6// layout); it is TypeScript source behind a symlink, so it must be served
7// from its real path and kept out of prebundling.
8const instrawave = realpathSync(resolve(import.meta.dirname, '../instrawave'));
10export default defineConfig({
11 base: './',
12 optimizeDeps: { exclude: ['instrawave'] },
13 server: { fs: { allow: [import.meta.dirname, instrawave] } },
14 build: { target: 'es2022' },
15});
↑↓ move↵openescclose