-
Notifications
You must be signed in to change notification settings - Fork 17
/
rollup.config.js
32 lines (29 loc) · 1005 Bytes
/
rollup.config.js
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
import typescript from 'rollup-plugin-typescript2';
import pkg from './package.json';
import replace from 'rollup-plugin-replace';
//import uglify from 'rollup-plugin-uglify';
//import { minify } from 'uglify-es';
export default [
{
input: './src/lib/Lib.ts',
external: [ 'typescript-collections', 'sanctuary-type-classes'],
output: [
{ file: pkg.module, format: 'es', sourcemap: true },
{ file: pkg.main, format: 'cjs', sourcemap: true },
],
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify( process.env['NODE_ENV'] )
}),
typescript({
tsconfigOverride: {
compilerOptions: {
declaration: false //will be run as a separate step via tsc which is more thorough
}
},
useTsconfigDeclarationDir: true,
})
//uglify({}, minify)
]
}
];