forked from nebulasio/neb.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
32 lines (28 loc) · 912 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
import babel from 'rollup-plugin-babel';
import json from 'rollup-plugin-json';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
entry: './index.js',
dest: 'dist/nebulas-node.js',
format: 'cjs',
plugins: [
json(),
babel({
exclude: 'node_modules/**' // Just translate our source code.
}),
commonjs({
// non-CommonJS modules will be ignored, but you can also
// specifically include/exclude files
include: ['./index.js', './lib/**', "node_modules/**"], // Default: undefined
// if true then uses of `global` won't be dealt with by this plugin
ignoreGlobal: false, // Default: false
// if false then skip sourceMap generation for CommonJS modules
sourceMap: false, // Default: true
}),
nodeResolve({
jsnext: true,
main: false
})
]
};