Skip to content

Commit

Permalink
Merge pull request #834 from appwrite/chore-remove-cross-fetch-and-fo…
Browse files Browse the repository at this point in the history
…rmdata

chore: remove cross-fetch and isomorphic-form-data
  • Loading branch information
lohanidamodar authored May 15, 2024
2 parents 27de410 + 49616e2 commit af7e4b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
4 changes: 0 additions & 4 deletions templates/web/package.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 1 addition & 5 deletions templates/web/rollup.config.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -22,10 +22,6 @@ export default {
file: pkg.jsdelivr,
name: "Appwrite",
extend: true,
globals: {
"cross-fetch": "window",
"FormData": "FormData",
},
},
],
};
2 changes: 0 additions & 2 deletions templates/web/src/client.ts.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'isomorphic-form-data';
import { fetch } from 'cross-fetch';
import { Models } from './models';
import { Service } from './service';

Expand Down

0 comments on commit af7e4b5

Please sign in to comment.