Files
tickte-system/node_modules/appwrite/rollup.config.js
2025-12-17 17:55:13 +01:00

32 lines
725 B
JavaScript

import pkg from "./package.json";
import typescript from "@rollup/plugin-typescript";
export default {
external: Object.keys(pkg.dependencies),
input: "src/index.ts",
plugins: [typescript()],
output: [
{
format: "cjs",
file: pkg.main,
esModule: false,
sourcemap: true,
},
{
format: "es",
file: pkg.module,
sourcemap: true,
},
{
format: "iife",
file: pkg.jsdelivr,
name: "Appwrite",
extend: true,
globals: {
"cross-fetch": "window",
"FormData": "FormData",
},
},
],
};