-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
38 lines (37 loc) · 806 Bytes
/
rollup.config.js
File metadata and controls
38 lines (37 loc) · 806 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
37
38
const commonjs = require('rollup-plugin-commonjs')
const eslint = require('rollup-plugin-eslint')
const replace = require('rollup-plugin-replace')
const resolve = require('rollup-plugin-node-resolve')
const babel = require('rollup-plugin-babel')
const json = require('rollup-plugin-json')
export default {
entry: './src/index.js',
dest: './dest/bundle.js',
format: 'cjs',
external: [
'core-js',
'fs',
'http',
'boxen',
'meow',
'url',
'fs-extra',
'path',
'colors',
'http-proxy',
'sha1',
],
plugins: [
json(),
eslint(),
babel({
runtimeHelpers: true,
exclude: 'node_modules/**',
}),
commonjs(),
resolve(),
replace({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
})
]
}