-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrollup.config.ts
More file actions
36 lines (35 loc) · 850 Bytes
/
rollup.config.ts
File metadata and controls
36 lines (35 loc) · 850 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
32
33
34
35
36
import dts from 'rollup-plugin-dts';
import typescript from '@rollup/plugin-typescript';
export default [
{
input: 'src/index.ts',
output: [
{
file: 'lib/MemoryCache.esm.js',
entryFileNames: '[name]',
exports: 'named',
format: 'es',
sourcemap: true
},
{
file: 'lib/MemoryCache.js',
format: 'cjs',
sourcemap: true
}
],
plugins: [
typescript({ tsconfig: './tsconfig.json', sourceMap: true })
]
},
{
input: 'src/index.ts',
output: {
file: 'lib/MemoryCache.d.ts',
format: 'es',
sourcemap: false
},
plugins: [
dts()
]
}
];