-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
executable file
·45 lines (42 loc) · 1015 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
33
34
35
36
37
38
39
40
41
42
43
44
45
import babel from '@rollup/plugin-babel';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';
import keysTransformer from 'ts-transformer-keys/transformer';
const config = {
input: 'src/index.ts',
external: [],
output: {
file: 'lib/index.js',
format: 'umd',
name: 'hola',
sourcemap: false
},
plugins: [
nodeResolve(),
typescript({
declaration: true,
declarationDir: "lib/",
declarationMap: true,
experimentalDecorators: true,
exclude: ['test'],
transformers: [service=>({
before: [ keysTransformer(service.getProgram())],
after: []
})]
}),
babel({
presets: [
['@babel/preset-env',
{
targets: {
esmodules: true
},
}]
],
exclude: ['node_modules','test'],
babelHelpers: 'bundled',
})
]
};
//'**/node_modules/**'
export default config;