-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathrollup.config.js
More file actions
36 lines (35 loc) · 838 Bytes
/
rollup.config.js
File metadata and controls
36 lines (35 loc) · 838 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
// rollup.config.js
import 'rollup'; /* eslint no-unused-vars: 0*/
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import builtins from 'rollup-plugin-node-builtins';
import json from 'rollup-plugin-json';
export default {
entry: 'static/scripts/main.js',
dest: 'static/scripts/bundle.js',
format: 'iife',
sourceMap: 'inline',
intro: `
/* eslint-disable */
var define = false;
var global={};
var process = {env: {}};
var isServer = false;
`,
plugins: [
resolve({
module: true, // Default: true
jsnext: true, // Default: false
main: true, // Default: true
browser: true,
extensions: [ '.js', '.json' ], // Default: ['.js']
}),
builtins(),
commonjs({
include: 'node_modules/**',
}),
json({
include: 'node_modules/**',
})
]
};