source: trip-planner-front/node_modules/hdr-histogram-js/rollup.config.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 703 bytes
Line 
1import resolve from "rollup-plugin-node-resolve";
2import commonjs from "rollup-plugin-commonjs";
3import typescript from "rollup-plugin-typescript";
4import { terser } from "rollup-plugin-terser";
5import pkg from "./package.json";
6
7export default [
8 // browser-friendly UMD build
9 {
10 input: "src/index.ts",
11 external: ["pako"],
12 output: {
13 name: "hdr",
14 file: pkg.browser,
15 format: "umd",
16 globals: {
17 pako: "pako",
18 },
19 },
20 plugins: [
21 resolve(), // so Rollup can find `base64...`
22 commonjs(), // so Rollup can convert `base64` to an ES module
23 typescript(), // so Rollup can convert TypeScript to JavaScript
24 terser(),
25 ],
26 },
27];
Note: See TracBrowser for help on using the repository browser.