-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrollup.config.js
More file actions
31 lines (28 loc) · 790 Bytes
/
rollup.config.js
File metadata and controls
31 lines (28 loc) · 790 Bytes
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
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json'
export default {
input: 'src/comparators.ts',
output: [
{
dir: "dist/umd",
format: 'umd',
name: 'Comparators'
},
],
external: [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
],
plugins: [
typescript({
typescript: require('typescript'),
tsconfig: "tsconfig.base.json",
tsconfigOverride: {
compilerOptions: {
declaration: true,
inlineSources: false // unfortunately, rollup-plugin-tyescript2 doesn't do inline source maps
}
}
}),
],
}