-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrollup.config.js
41 lines (39 loc) · 1.03 KB
/
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
33
34
35
36
37
38
39
40
41
/*
* RedGPU - MIT License
* Copyright (c) 2019 ~ By RedCamel( [email protected] )
* issue : https://github.com/redcamel/RedGPU/issues
* Last modification time of this file - 2020.3.26 17:47:56
*
*/
import resolve from '@rollup/plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import { terser } from "rollup-plugin-terser";
import strip from '@rollup/plugin-strip';
const config ={
input: 'src/RedGPU.js',
output: [
{
file: 'dist/RedGPU.min.mjs',
format: 'es',
name : 'RedGPU'
}
],
plugins: [
resolve(),
babel({
plugins: ["@babel/plugin-proposal-class-properties"],
exclude: 'node_modules/**' // only transpile our source code
}),
strip({}),
terser({
module: true,
mangle: {
reserved: ['RedGPU']
},
// toplevel:true,
// keep_classnames:true,
// keep_fnames :true
})
]
};
export default config