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';
|
2024-09-22 18:26:10 +00:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
2023-08-30 09:06:57 +00:00
|
|
|
|
|
|
|
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: {
|
2024-08-16 12:14:11 +00:00
|
|
|
'@visactor/vtable/es/vrender': path.resolve('../packages/vtable/src/vrender.ts'),
|
2023-11-10 10:13:12 +00:00
|
|
|
'@visactor/vtable': path.resolve('../packages/vtable/src/index.ts'),
|
2024-08-19 10:21:48 +00:00
|
|
|
'@visactor/vtable-gantt': path.resolve('../packages/vtable-gantt/src/index.ts'),
|
2024-11-01 10:35:28 +00:00
|
|
|
'@visactor/vtable-calendar': path.resolve('../packages/vtable-calendar/src/index.ts'),
|
2023-12-20 10:09:31 +00:00
|
|
|
'@visactor/vtable-editors': path.resolve('../packages/vtable-editors/src/index.ts'),
|
2024-01-18 07:41:53 +00:00
|
|
|
'@visactor/vtable-export': path.resolve('../packages/vtable-export/src/index.ts'),
|
2024-03-08 09:30:41 +00:00
|
|
|
'@visactor/vtable-search': path.resolve('../packages/vtable-search/src/index.ts'),
|
2024-03-15 10:21:32 +00:00
|
|
|
'@visactor/react-vtable': path.resolve('../packages/react-vtable/src/index.ts'),
|
2024-09-19 17:08:05 +00:00
|
|
|
'@visactor/vue-vtable': path.resolve('../packages/vue-vtable/src/index.ts'),
|
2024-03-21 08:40:33 +00:00
|
|
|
'@visactor/openinula-vtable': path.resolve('../packages/openinula-vtable/src/index.ts'),
|
2024-05-13 11:45:14 +00:00
|
|
|
'@vutils-extension': path.resolve(__dirname, '../packages/vtable/src/vutil-extension-temp'),
|
2024-03-21 08:40:33 +00:00
|
|
|
'@src': path.resolve(__dirname, '../packages/vtable/src/'),
|
|
|
|
|
2024-09-22 18:26:10 +00:00
|
|
|
'vue': 'vue/dist/vue.esm-bundler.js'
|
|
|
|
|
2024-03-21 08:40:33 +00:00
|
|
|
// react: 'openinula', // 新增
|
|
|
|
// 'react-dom': 'openinula', // 新增
|
|
|
|
// 'react/jsx-dev-runtime': 'openinula/jsx-dev-runtime'
|
2023-08-30 10:50:00 +00:00
|
|
|
}
|
|
|
|
},
|
2024-09-22 18:26:10 +00:00
|
|
|
plugins: [react(), vue()]
|
2023-08-30 09:06:57 +00:00
|
|
|
};
|