Skip to content

Commit

Permalink
deprecate iife build support
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan committed Feb 29, 2024
1 parent 13796f7 commit f1b45d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

# Unreleased

- [`Deprecate`] IIFE build support

# 1.9.1 (2024-02-28)

- [`Fix`] Remove decimals field from `CurrentTokenOwnershipFields` gql fragement
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Install with your favorite package manager such as npm, yarn, or pnpm:
pnpm install @aptos-labs/ts-sdk
```

##### For use in a browser
##### For use in a browser (<= 1.9.1 version only)

You can add the SDK to your web application using a script tag:

Expand Down
12 changes: 1 addition & 11 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ const DEFAULT_CONFIG: Options = {
},
};

// Browser config, uses iife
const IIFE_CONFIG: MandatoryOptions = {
...DEFAULT_CONFIG,
format: "iife",
globalName: "aptosSDK",
outDir: "dist/browser",
platform: "browser",
splitting: false,
};

// Common.js config
const COMMON_CONFIG: MandatoryOptions = {
...DEFAULT_CONFIG,
Expand All @@ -55,4 +45,4 @@ const ESM_CONFIG: MandatoryOptions = {
platform: "node",
};

export default defineConfig([IIFE_CONFIG, COMMON_CONFIG, ESM_CONFIG]);
export default defineConfig([COMMON_CONFIG, ESM_CONFIG]);

0 comments on commit f1b45d0

Please sign in to comment.