-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrollup.config.dev.js
More file actions
43 lines (39 loc) · 938 Bytes
/
rollup.config.dev.js
File metadata and controls
43 lines (39 loc) · 938 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
39
40
41
42
43
import pkg from './package.json'
/*
The dev version of the Rollup config does not transpile to ES5
and outputs a single umd package.
*/
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import builtins from 'rollup-plugin-node-builtins'
import globals from 'rollup-plugin-node-globals'
import glsl from 'rollup-plugin-glsl'
import replace from 'rollup-plugin-replace'
export default [
{
input: pkg.entry,
output: {
file: pkg.es6,
name: pkg.name,
sourcemap: true,
format: 'umd'
},
plugins: [
replace({
exclude: 'node_modules/**',
delimiters: ['<@', '@>'],
APP_NAME: pkg.name,
APP_VERSION: pkg.version
}),
nodeResolve({
preferBuiltins: false
}),
commonjs(),
globals(),
builtins(),
glsl({
include: 'src/shaders/*.glsl',
})
]
}
];