react-go-to-top-customisable-button
Version:
A customizable 'Back to Top' button for React apps with smooth animations and custom styling.
23 lines (21 loc) • 560 B
JavaScript
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
export default {
input: "src/index.ts",
output: [
{
file: "dist/index.js",
format: "cjs",
sourcemap: true,
},
{
file: "dist/index.es.js",
format: "esm",
sourcemap: true,
},
],
plugins: [peerDepsExternal(), resolve(), commonjs(), typescript()],
external: ["react", "react-dom"],
};