19 lines
404 B
JavaScript
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()],
|
|
};
|