Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
703 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import resolve from "rollup-plugin-node-resolve";
|
---|
| 2 | import commonjs from "rollup-plugin-commonjs";
|
---|
| 3 | import typescript from "rollup-plugin-typescript";
|
---|
| 4 | import { terser } from "rollup-plugin-terser";
|
---|
| 5 | import pkg from "./package.json";
|
---|
| 6 |
|
---|
| 7 | export 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.