star-meter
Version:
A highly customizable React star rating component with support for half-stars, animations, and custom styling
32 lines (30 loc) • 684 B
JavaScript
import babel from "rollup-plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import postcss from "rollup-plugin-postcss";
import { terser } from "rollup-plugin-terser";
export default {
input: "src/index.js",
output: [
{
file: "dist/index.js",
format: "cjs",
sourcemap: true,
},
],
external: ["react", "react-dom"],
plugins: [
resolve(),
postcss({
extensions: [".css"],
minimize: true,
inject: {
insertAt: "top",
},
}),
babel({
exclude: "node_modules/**",
presets: ["@babel/preset-react", "@babel/preset-env"],
}),
terser(),
],
};