forked from OrderlyNetwork/example-dex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
36 lines (35 loc) · 905 Bytes
/
vite.config.ts
File metadata and controls
36 lines (35 loc) · 905 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
25
26
27
28
29
30
31
32
33
34
35
36
import { vitePlugin as remix } from '@remix-run/dev';
import { defineConfig } from 'vite';
import { cjsInterop } from 'vite-plugin-cjs-interop';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
server: {
port: 3000
},
base: process.env.BASE ?? '/',
ssr: {
noExternal: [/^@orderly.*$/]
},
plugins: [
remix({
ssr: false,
ignoredRouteFiles: ['**/*.css'],
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
v3_singleFetch: true,
v3_lazyRouteDiscovery: true
},
basename: process.env.BASE ?? '/'
}),
tsconfigPaths(),
nodePolyfills({
include: ['buffer', 'crypto']
}),
cjsInterop({
dependencies: ['bs58', '@coral-xyz/anchor', 'use-constant']
})
]
});