attq/rollup.config.mjs
Brent Schroeter f74684396b init repo
2026-02-02 07:36:59 +00:00

19 lines
404 B
JavaScript

import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import pkg from "./package.json" with { type: "json" };
export default {
input: "src/index.ts",
output: [
{
file: pkg.browser,
format: "umd",
name: "attq",
plugins: [terser()],
},
{ file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "es" },
],
plugins: [typescript()],
};