generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup.config.mjs
37 lines (35 loc) · 992 Bytes
/
rollup.config.mjs
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
/*
* Copyright © 2022, 2023, Oracle and/or its affiliates.
* Licensed under the Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/
*/
import typescript from "@rollup/plugin-typescript";
import terser from "@rollup/plugin-terser";
import dts from "rollup-plugin-dts";
const config = [
{
input: "src/OFS.ts",
output: {
name: "OFS",
file: "dist/ofs.es.js",
format: "es",
},
plugins: [
typescript(),
terser({
compress: {
unsafe: true,
},
mangle: true,
keep_fnames: true,
keep_classnames: true,
}),
],
},
{
// path to your declaration files root
input: "dist/build/types/src/OFS.d.ts",
output: [{ file: "dist/OFS.d.ts", format: "es" }],
plugins: [dts()],
},
];
export default config;