-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
47 lines (46 loc) · 1.37 KB
/
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
46
47
import { babel } from '@rollup/plugin-babel';
import typescript from 'rollup-plugin-typescript2';
export default {
input: 'src/main.ts',
output: [
{ file: 'node_modules/@noeldemartin/scripts/dist/noeldemartin-scripts.esm.js', format: 'esm' },
{ file: 'node_modules/@noeldemartin/scripts/dist/noeldemartin-scripts.cjs.js', format: 'cjs' },
],
external: [
'@microsoft/api-extractor',
'@noeldemartin/utils',
'@rollup/plugin-babel',
'@rollup/plugin-commonjs',
'@rollup/plugin-json',
'@rollup/plugin-node-resolve',
'fs',
'path',
'rollup-plugin-icons',
'rollup-plugin-terser',
'rollup-plugin-typescript2',
'rollup-plugin-vue',
'rollup',
/^@babel\/runtime\//,
/^core-js\//,
/^regenerator-runtime\//,
/^unplugin-icons\//,
],
plugins: [
typescript(),
babel({
extensions: ['.ts'],
babelHelpers: 'bundled',
presets: [
'@babel/preset-typescript',
[
'@babel/preset-env',
{
targets: 'node 12',
corejs: { version: '3.8', proposals: true },
useBuiltIns: 'usage',
},
],
],
}),
],
};