-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
37 lines (35 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
import {
version as LIB_VERSION,
description as LIB_DESCRIPTION,
} from "./package.json";
import resolve from "rollup-plugin-node-resolve";
import babel from "rollup-plugin-babel";
const LIB_NAME = `AJS`;
const AUTHOR_NAME = `qddegtya`;
export default {
input: "./index.js",
output: [
{
file: "dist/ajs.cjs.js",
format: "cjs",
name: LIB_NAME,
banner: `/** ${LIB_NAME} (${LIB_VERSION}): ${LIB_DESCRIPTION} */`,
footer: `/** Follow me: @${AUTHOR_NAME} (https://github.com/${AUTHOR_NAME}) */`,
},
{
file: "dist/ajs.umd.js",
format: "umd",
name: LIB_NAME,
banner: `/** ${LIB_NAME} (${LIB_VERSION}): ${LIB_DESCRIPTION} */`,
footer: `/** Follow me: @${AUTHOR_NAME} (https://github.com/${AUTHOR_NAME}) */`,
},
{
file: "dist/ajs.es.js",
format: "es",
name: LIB_NAME,
banner: `/** ${LIB_NAME} (${LIB_VERSION}): ${LIB_DESCRIPTION} */`,
footer: `/** Follow me: @${AUTHOR_NAME} (https://github.com/${AUTHOR_NAME}) */`,
},
],
plugins: [resolve(), babel()],
};