1
0
Fork 0
mirror of synced 2024-07-08 16:06:02 +12:00
appwrite/app/sdks/client-web/rollup.config.js

32 lines
721 B
JavaScript
Raw Normal View History

2021-06-24 00:15:27 +12:00
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",
},
},
],
};