2023-08-30 09:06:57 +00:00
|
|
|
import pkg from '../packages/vtable/package.json';
|
2023-08-30 10:50:00 +00:00
|
|
|
import * as path from 'path';
|
2023-08-30 09:06:57 +00:00
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
optimizeDeps: {},
|
|
|
|
server: {
|
|
|
|
host: '0.0.0.0',
|
|
|
|
port: 3020,
|
2023-08-30 10:50:00 +00:00
|
|
|
https: !!process.env.HTTPS,
|
|
|
|
open: true
|
2023-08-30 09:06:57 +00:00
|
|
|
},
|
|
|
|
define: {
|
|
|
|
__DEV__: true,
|
|
|
|
__VERSION__: JSON.stringify(pkg.version)
|
|
|
|
},
|
2023-08-30 10:50:00 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@visactor/vtable': path.resolve('../packages/vtable/src/index.ts')
|
|
|
|
}
|
|
|
|
},
|
2023-08-30 09:06:57 +00:00
|
|
|
plugins: [react()]
|
|
|
|
};
|