mirror of https://github.com/cupcakearmy/zod.git
30 lines
535 B
JavaScript
30 lines
535 B
JavaScript
// rollup.config.js
|
|
import typescript from "@rollup/plugin-typescript";
|
|
|
|
export default [
|
|
{
|
|
input: "src/index.ts",
|
|
output: [
|
|
{
|
|
file: "lib/index.mjs",
|
|
format: "es",
|
|
sourcemap: false,
|
|
exports: "named",
|
|
},
|
|
{
|
|
file: "lib/index.umd.js",
|
|
name: "Zod",
|
|
format: "umd",
|
|
sourcemap: false,
|
|
exports: "named",
|
|
},
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
tsconfig: "tsconfig.esm.json",
|
|
sourceMap: false,
|
|
}),
|
|
],
|
|
},
|
|
];
|