diff --git a/templates/web/package.json.twig b/templates/web/package.json.twig index f541158e0..e1e520353 100644 --- a/templates/web/package.json.twig +++ b/templates/web/package.json.twig @@ -32,10 +32,6 @@ "tslib": "2.4.0", "typescript": "4.7.2" }, - "dependencies": { - "cross-fetch": "3.1.5", - "isomorphic-form-data": "2.0.0" - }, "jsdelivr": "dist/iife/sdk.js", "unpkg": "dist/iife/sdk.js" } diff --git a/templates/web/rollup.config.js.twig b/templates/web/rollup.config.js.twig index a9c335411..cae7a89c0 100644 --- a/templates/web/rollup.config.js.twig +++ b/templates/web/rollup.config.js.twig @@ -2,7 +2,7 @@ import pkg from "./package.json"; import typescript from "@rollup/plugin-typescript"; export default { - external: Object.keys(pkg.dependencies), + external: Object.keys(pkg.dependencies ?? {}), input: "src/index.ts", plugins: [typescript()], output: [ @@ -22,10 +22,6 @@ export default { file: pkg.jsdelivr, name: "Appwrite", extend: true, - globals: { - "cross-fetch": "window", - "FormData": "FormData", - }, }, ], }; diff --git a/templates/web/src/client.ts.twig b/templates/web/src/client.ts.twig index 7cca9a286..108a49033 100644 --- a/templates/web/src/client.ts.twig +++ b/templates/web/src/client.ts.twig @@ -1,5 +1,3 @@ -import 'isomorphic-form-data'; -import { fetch } from 'cross-fetch'; import { Models } from './models'; import { Service } from './service';