-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrollup.config.mjs
More file actions
36 lines (35 loc) · 923 Bytes
/
rollup.config.mjs
File metadata and controls
36 lines (35 loc) · 923 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
32
33
34
35
36
/* eslint-disable no-undef */
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import esbuild from 'rollup-plugin-esbuild';
import {visualizer} from "rollup-plugin-visualizer";
export default [
{
input: "lib-web/src/index-web.js",
output: {
file: "dist/reader-ddfcsv.js",
name: "DDFCsvReader",
format: "umd",
sourcemap: true
},
plugins: [
replace({
"process.env.": "{}.",
delimiters: ["", ""],
preventAssignment: true
}),
nodeResolve({ browser: true }),
commonjs(),
esbuild({
minify: true,
keepNames: true, // prevent renaming of class/function identifiers
target: "es2020", // bump as high as your audience allows
legalComments: "none"
}),
visualizer({
filename: "./dist/stats.html"
}),
]
}
];