-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
38 lines (37 loc) · 1009 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
import {nodeResolve} from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import {babel} from '@rollup/plugin-babel';
// import { visualizer } from 'rollup-plugin-visualizer'
// import analyze from 'rollup-plugin-analyzer'
export default {
input: 'index.js',
output: {
dir: 'dist',
format: 'cjs',
exports: 'default',
name: 'should-skip-update',
globals: {
fs: 'fs', assert: 'assert', util: 'util', path: 'path'
}
},
plugins: [
commonjs({
transformMixedEsModules: true,
dynamicRequireTargets: [
'node_modules/jsx-ast-utils/lib/values/expressions/*.js'
],
ignoreDynamicRequires: [
'node_modules/react/index.js'
]
}),
nodeResolve({
moduleDirectories: ['node_modules']
}),
babel({babelHelpers: 'bundled'}),
json()
// visualizer(),
// analyze({ summaryOnly: true }),
],
external: ['fs', 'assert', 'util', 'path']
};