1
0
Fork 0
mirror of synced 2024-07-05 22:51:24 +12:00
appwrite/app/sdks/client-web/rollup.config.js
2021-06-23 17:45:27 +05:30

32 lines
721 B
JavaScript

import pkg from "./package.json";
import typescript from "@rollup/plugin-typescript";
export default {
external: Object.keys(pkg.dependencies),
input: "src/sdk.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: "window",
extend: true,
globals: {
"cross-fetch": "window",
"FormData": "FormData",
},
},
],
};