forked from lverniu777/vap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.dist.js
More file actions
38 lines (36 loc) · 838 Bytes
/
Copy pathrollup.config.dist.js
File metadata and controls
38 lines (36 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
37
38
import resolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
import { uglify } from "rollup-plugin-uglify";
import commonjs from 'rollup-plugin-commonjs';
import typescript from "rollup-plugin-typescript2";
const extensions = ['.js','.ts'];
export default [
{
input: "src/index.ts",
output: {
name: "Vap",
file: "dist/vap.min.js",
format: "umd"
},
plugins: [
typescript({
tsconfig: "rollup.tsconfig.json"
}),
resolve(), // so Rollup can find `ms`
commonjs({
include:'node_modules/**'
}),
babel({
exclude: "node_modules/**",
extensions,
runtimeHelpers: true
}),
uglify({
compress: {
drop_console: true,
drop_debugger: true
}
})
]
}
];