-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
39 lines (38 loc) · 1.07 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
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import ts from "@rollup/plugin-typescript";
import { copy } from '@web/rollup-plugin-copy';
import terser from "@rollup/plugin-terser";
export default [
{
input: "lib/fediverse.ts",
output: [
{
file: "public/thrutto-fedishare.js",
format: "module",
sourcemap: true,
},
{
file: "public/thrutto-fedishare.min.js",
format: "module",
plugins: [
terser({
ecma: 2019,
module: true,
warnings: true
})
]
}
],
plugins: [
ts({
compilerOptions: {
lib: ["es2019", "dom"],
experimentalDecorators: true,
useDefineForClassFields: false,
}
}),
resolve(),
]
}
]