attq/rollup.config.mjs
2026-02-03 05:18:04 +00:00

22 lines
465 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({
include: ["src/**/*.ts"],
exclude: ["**/*.test.ts"],
})],
};