-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
31 lines (29 loc) · 654 Bytes
/
rollup.config.js
File metadata and controls
31 lines (29 loc) · 654 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
/*
* Copyright (c) 1986-2024 Ecmel Ercan (https://ecmel.dev/)
* Licensed under the MIT License
*/
import { cleandir } from "rollup-plugin-cleandir";
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
export default {
input: "refable.ts",
output: [
{
file: "dist/refable.js",
format: "iife",
name: "refable",
sourcemap: true,
},
{
file: "dist/refable.cjs",
format: "cjs",
sourcemap: true,
},
{
file: "dist/refable.mjs",
format: "es",
sourcemap: true,
},
],
plugins: [cleandir("dist"), typescript(), terser()],
};