monorepo-microservice-rbac/packages/util/rollup.config.js

28 lines
584 B
JavaScript
Raw Normal View History

2023-08-27 14:37:59 +08:00
import typescript from "rollup-plugin-typescript2";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
export default {
input: "src/index.ts",
output: [
{
file: "dist/index.js",
format: "cjs",
inlineDynamicImports: true
},
{
file: "dist/index.esm.mjs",
format: "esm",
inlineDynamicImports: true
}
],
external: ['crypto-js', 'flatted', 'html2canvas', 'jspdf'],
plugins: [
typescript({
useTsconfigDeclarationDir: true
}),
resolve(),
commonjs(),
],
};