-
-
Notifications
You must be signed in to change notification settings - Fork 276
Expand file tree
/
Copy pathrollup.config.js
More file actions
28 lines (26 loc) · 619 Bytes
/
rollup.config.js
File metadata and controls
28 lines (26 loc) · 619 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
import typescript from "rollup-plugin-typescript2";
import commonjs from "rollup-plugin-commonjs";
import nodeResolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
import { terser } from "rollup-plugin-terser";
import json from "@rollup/plugin-json";
const plugins = [
nodeResolve({}),
commonjs(),
typescript(),
json(),
babel({
exclude: "node_modules/**",
}),
terser(),
];
export default [
{
input: "src/xiaomi-vacuum-map-card.ts",
output: {
dir: "dist",
format: "es",
},
plugins,
},
];