quickzen-ui
Version:
QuickZen UI is a modern, lightweight React component library designed for fast and easy UI development. Build beautiful, accessible, and reusable components with zero hassle.
54 lines (52 loc) • 1.37 kB
JavaScript
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import dts from "rollup-plugin-dts";
import terser from "@rollup/plugin-terser";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import postcss from "rollup-plugin-postcss";
const packageJson = require("./package.json");
export default [
{
input: "src/index.ts",
output: [
{
file: packageJson.main,
format: "cjs",
sourcemap: true,
},
{
file: packageJson.module,
format: "esm",
sourcemap: true,
},
],
plugins: [
peerDepsExternal(),
resolve(),
commonjs(),
typescript({ tsconfig: "./tsconfig.json" }),
terser(),
postcss({
extract: "index.css", // dist/index.css তৈরি হবে
minimize: true,
}),
],
external: ["react", "react-dom"],
onwarn(warning, warn) {
if (
warning.code === "MODULE_LEVEL_DIRECTIVE" &&
/node_modules[\\/]framer-motion/.test(warning.id)
) {
return;
}
warn(warning);
},
},
{
input: "src/index.ts",
output: [{ file: packageJson.types }],
plugins: [dts.default()],
external: [/\.css$/],
},
];