2
0
Files
cal/calcom/packages/platform/sdk/rollup.config.js
2024-08-09 00:39:27 +02:00

31 lines
709 B
JavaScript

import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import bundleSize from "rollup-plugin-bundle-size";
import pkg from "./package.json";
/** @type {import('rollup').RollupOptions} */
// eslint-disable-next-line import/no-anonymous-default-export
export default {
input: "src/index.ts",
output: [
{
file: pkg.main,
format: "cjs",
},
{
file: pkg.module,
format: "es",
},
],
plugins: [
json(),
commonjs(),
nodeResolve(),
typescript({ tsconfig: "./tsconfig.build.json" }),
bundleSize(),
],
};