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
| import path from 'node:path';
|
| import vue from '@vitejs/plugin-vue';
| import { defineConfig } from 'vite';
|
| export default defineConfig({
| build: {
| lib: {
| // eslint-disable-next-line unicorn/prefer-module
| entry: path.resolve(__dirname, 'src/components/bpmn/index.ts'),
| fileName: `index`,
| name: 'index',
| },
| minify: 'terser',
| rollupOptions: {
| external: ['vue'],
| output: {
| exports: 'named',
| globals: {
| vue: 'Vue',
| },
| },
| },
| terserOptions: {
| compress: {
| drop_console: true,
| drop_debugger: true,
| },
| format: {
| comments: false,
| },
| },
| },
| plugins: [vue()],
| });
|
|