aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
blob: 3cdaa211413ff0dc7cd0de7a37e9591a657b7ee6 (plain)
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
import rollup_nre from '@rollup/plugin-node-resolve';
import rollup_tsc from '@rollup/plugin-typescript';
// import { terser } from 'rollup-plugin-terser';

export default [
  {
    input: './src-ui/src/main.ts',
    output: {
      file: './dist/js/app-bundle.js',
      format: 'iife',
      name: 'bundle',
      sourcemap: true
    },
    plugins: [
      // rollup_cjs(),
      rollup_nre(),
      rollup_tsc({
        tsconfig: './src-ui/tsconfig.json',
        compilerOptions: {
          declaration: false,
          declarationDir: null
        }
      }),
      // terser({ compress: true, format: { comments: false } })
    ]
  }
]