next-js-active-route
Version:
Active link component for Next.JS App Router, can be used in any component
14 lines (12 loc) • 350 B
JavaScript
import { defineConfig } from "rollup";
import typescript from "@rollup/plugin-typescript";
export default defineConfig({
input: "src/index.ts",
output: {
dir: "dist",
format: "esm",
name: "next-js-active-link",
},
external: ["react", "react-dom", "next"],
plugins: [typescript({ tsconfig: "tsconfig.json" })],
});