forked from naver/egjs-flicking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
57 lines (53 loc) · 1.05 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* eslint-disable @typescript-eslint/no-var-requires */
const buildHelper = require("./config/build-helper");
const external = {
"@egjs/axes": "eg.Axes",
"@egjs/component": "eg.Component",
"@egjs/imready": "eg.ImReady"
};
const name = "Flicking";
export default buildHelper([
{
name,
input: "./src/index.umd.ts",
output: "./dist/flicking.js",
format: "umd",
external
},
{
name,
input: "./src/index.umd.ts",
output: "./dist/flicking.min.js",
format: "umd",
uglify: true,
external
},
{
name,
input: "./src/index.umd.ts",
output: "./dist/flicking.pkgd.js",
format: "umd",
resolve: true
},
{
name,
input: "./src/index.umd.ts",
output: "./dist/flicking.pkgd.min.js",
format: "umd",
resolve: true,
uglify: true
},
{
input: "./src/index.ts",
output: "./dist/flicking.esm.js",
format: "esm",
external,
exports: "named"
},
{
input: "./src/index.cjs.ts",
output: "./dist/flicking.cjs.js",
format: "cjs",
exports: "named",
}
]);