-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (22 loc) · 882 Bytes
/
vite.config.ts
File metadata and controls
24 lines (22 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
// The example imports from '@monkeytab/browser' (the workspace name used
// throughout the source). Vite aliases that to the parent repo's src/ so
// you can edit the source and see live updates without rebuilding the
// npm package. This makes the example a good place to test changes.
export default defineConfig({
plugins: [react()],
server: {
port: 5180,
},
resolve: {
alias: {
'@monkeytab/core': resolve(__dirname, '../../src/core/index.ts'),
'@monkeytab/adapter-memory': resolve(__dirname, '../../src/adapters/memory/index.ts'),
'@monkeytab/browser': resolve(__dirname, '../../src/browser/index.ts'),
},
},
});