Skip to content

Commit af7e4b5

Browse files
Merge pull request #834 from appwrite/chore-remove-cross-fetch-and-formdata
chore: remove cross-fetch and isomorphic-form-data
2 parents 27de410 + 49616e2 commit af7e4b5

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

templates/web/package.json.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
"tslib": "2.4.0",
3333
"typescript": "4.7.2"
3434
},
35-
"dependencies": {
36-
"cross-fetch": "3.1.5",
37-
"isomorphic-form-data": "2.0.0"
38-
},
3935
"jsdelivr": "dist/iife/sdk.js",
4036
"unpkg": "dist/iife/sdk.js"
4137
}

templates/web/rollup.config.js.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import pkg from "./package.json";
22
import typescript from "@rollup/plugin-typescript";
33

44
export default {
5-
external: Object.keys(pkg.dependencies),
5+
external: Object.keys(pkg.dependencies ?? {}),
66
input: "src/index.ts",
77
plugins: [typescript()],
88
output: [
@@ -22,10 +22,6 @@ export default {
2222
file: pkg.jsdelivr,
2323
name: "Appwrite",
2424
extend: true,
25-
globals: {
26-
"cross-fetch": "window",
27-
"FormData": "FormData",
28-
},
2925
},
3026
],
3127
};

templates/web/src/client.ts.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'isomorphic-form-data';
2-
import { fetch } from 'cross-fetch';
31
import { Models } from './models';
42
import { Service } from './service';
53

0 commit comments

Comments
 (0)