UNPKG

react-best-heatmap

Version:

Build and customize an heatmap for exactly what you need.

39 lines (37 loc) 836 B
import babel from "rollup-plugin-babel"; import resolve from "@rollup/plugin-node-resolve"; import external from "rollup-plugin-peer-deps-external"; import postcss from "rollup-plugin-postcss"; import commonjs from "@rollup/plugin-commonjs"; export default [ { input: "./src/index.js", output: [ { file: "dist/index.js", format: "cjs", sourcemap: true, }, { file: "dist/index.esm.js", format: "esm", sourcemap: true, }, ], plugins: [ postcss({ plugins: [], minimize: true, }), babel({ exclude: "node_modules/**", presets: ["@babel/preset-react"], }), commonjs(), external(), resolve({ browser: true, }), ], }, ];