forked from naver/egjs-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
41 lines (37 loc) · 838 Bytes
/
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
const buildHelper = require("@egjs/build-helper");
const external = {
"@egjs/axes": "eg.Axes",
"@egjs/component": "eg.Component",
}
const name = "eg.agent";
export default buildHelper([
{
name,
input: "./src/index.umd.ts",
output: "./dist/agent.js",
exports: "default",
format: "umd",
},
{
name,
input: "./src/index.umd.ts",
output: "./dist/agent.min.js",
format: "umd",
exports: "default",
uglify: true,
},
{
input: "./src/agent.ts",
output: "./dist/agent.esm.js",
format: "esm",
external,
exports: "named",
},
{
input: "./src/index.umd.ts",
output: "./dist/agent.cjs.js",
format: "cjs",
external,
exports: "default",
},
]);