-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
60 lines (57 loc) · 1.45 KB
/
vite.config.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
import vuetify from 'vite-plugin-vuetify';
// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
plugins: [],
},
},
plugins: [
// fhir(),
// Inspect({ build: true, outputDir: '.vite-inspect' }),
vue(),
vuetify({ autoImport: true }),
// createFhir(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
// This Rollup aliases are extracted from @esbuild-plugins/node-modules-polyfill,
// see https://github.com/remorses/esbuild-plugins/blob/master/node-modules-polyfill/src/polyfills.ts
// process and buffer are excluded because already managed
// by node-globals-polyfill
// stream: 'rollup-plugin-node-polyfills/polyfills/stream',
// buffer: 'rollup-plugin-node-polyfills/polyfills/buffer-es6',
},
},
// optimizeDeps: {
// esbuildOptions: {
// define: {
// global: 'globalThis',
// },
// plugins: [
// NodeGlobalsPolyfillPlugin({
// process: true,
// buffer: true,
// }),
// NodeModulesPolyfillPlugin(),
// ],
// },
// },
// devServer: {
// proxy: {
// '/api': {
// ws: true,
// changeOrigin: true,
// target: 'http://fhir.redwoodhealth.kr/fhir',
// },
// },
// },
// define: {
// 'process.env': {},
// },
});