-
Notifications
You must be signed in to change notification settings - Fork 16
/
rollup.config.ts
25 lines (24 loc) · 1.05 KB
/
rollup.config.ts
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
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import sourceMaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
export default {
input: 'src/index.ts',
output: [
{ file: 'dist/umd/index.umd.js', name: 'serverWorkflowSdk', format: 'umd', sourcemap: true },
{
file: 'dist/umd/index.umd.min.js',
name: 'serverWorkflowSdk',
format: 'umd',
sourcemap: true,
plugins: [terser()],
},
{ file: 'dist/esm/index.esm.js', format: 'es', sourcemap: true },
{ file: 'dist/esm/index.esm.min.js', format: 'es', sourcemap: true, plugins: [terser()] },
{ file: 'dist/systemjs/index.systemjs.js', format: 'system', sourcemap: true },
{ file: 'dist/systemjs/index.systemjs.min.js', format: 'system', sourcemap: true, plugins: [terser()] },
],
plugins: [json(), typescript({ useTsconfigDeclarationDir: true }), commonjs(), resolve(), sourceMaps()],
};