-
Notifications
You must be signed in to change notification settings - Fork 14
/
rollup.config.js
32 lines (31 loc) · 1010 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
var commonjs = require('rollup-plugin-commonjs');
var nodeResolve = require('rollup-plugin-node-resolve');
var replace = require('rollup-plugin-replace');
var babel = require('rollup-plugin-babel');
module.exports = {
entry: 'src/client.js',
dest: 'dist/vdt.esm.js',
format: 'cjs',
external: ['fs', 'path', 'url'],
legacy: true,
plugins: [
babel({
// exclude: 'node_modules/**',
presets: [
['es2015', {"modules": false, "loose": true}]
],
plugins: [
"external-helpers",
// "minify-constant-folding",
// "transform-es3-property-literals",
// "transform-es3-member-expression-literals",
],
babelrc: false
}),
nodeResolve({module: true, jsnext: true, main: true, browser: true}),
commonjs(),
// replace({
// 'process.env.NODE_ENV': JSON.stringify('production')
// })
]
};