Skip to content

Commit cb10d05

Browse files
committed
Drop the IIFE script-tag bundle; the SDK ships ES modules only
1 parent 3d9a7f1 commit cb10d05

5 files changed

Lines changed: 2 additions & 96 deletions

File tree

‎.agents/skills/exceptionless-javascript/references/client-browser.md‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ CDN:
2020
</script>
2121
```
2222

23-
Classic script tag (no ES modules): `dist/index.global.min.js` (or unminified `dist/index.global.js`) exposes the package exports on a global `exceptionless` object. The `unpkg`/`jsdelivr` package defaults remain the ESM bundle, so name the file explicitly:
24-
25-
```html
26-
<script src="https://unpkg.com/@exceptionless/browser@3/dist/index.global.min.js"></script>
27-
<script>
28-
exceptionless.Exceptionless.startup("API_KEY_HERE");
29-
</script>
30-
```
31-
3223
## Configure
3324

3425
```js

‎README.md‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,6 @@ Add the following script tag at the very beginning of your page:
111111
</script>
112112
```
113113

114-
For pages that can't use ES modules, load the classic script build. It exposes the package exports on a global `exceptionless` object:
115-
116-
```html
117-
<script src="https://unpkg.com/@exceptionless/browser@3/dist/index.global.min.js"></script>
118-
<script>
119-
exceptionless.Exceptionless.startup((c) => {
120-
c.apiKey = "API_KEY_HERE";
121-
});
122-
</script>
123-
```
124-
125114
##### npm
126115

127116
1. Install the package by running `npm install @exceptionless/browser --save`.

‎packages/browser/README.md‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ in vanilla HTML and JS.
55

66
## Getting Started
77

8-
The npm package and default CDN bundle are ES modules. See
9-
[Classic script tag](#classic-script-tag) for pages that can't use them.
8+
This package is published as ES modules only.
109

1110
## Installation
1211

@@ -27,22 +26,6 @@ Add the following script tag at the very beginning of your page:
2726
</script>
2827
```
2928

30-
### Classic script tag
31-
32-
For pages that can't use ES modules, load the classic script build. It exposes
33-
the package exports on a global `exceptionless` object:
34-
35-
```html
36-
<script src="https://unpkg.com/@exceptionless/browser@3/dist/index.global.min.js"></script>
37-
<script>
38-
exceptionless.Exceptionless.startup((c) => {
39-
c.apiKey = "API_KEY_HERE";
40-
});
41-
</script>
42-
```
43-
44-
An unminified build is available at `dist/index.global.js`.
45-
4629
### npm
4730

4831
1. Install the package by running `npm install @exceptionless/browser --save`.

‎packages/browser/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"./package.json": "./package.json"
3939
},
4040
"scripts": {
41-
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.min.js && esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=iife --global-name=exceptionless --outfile=dist/index.global.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2022 --format=iife --global-name=exceptionless --outfile=dist/index.global.min.js",
41+
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.min.js",
4242
"watch": "tsc -p ../core/tsconfig.json -w --preserveWatchOutput & tsc -p tsconfig.json -w --preserveWatchOutput & esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=esm --watch --outfile=dist/index.bundle.js",
4343
"test": "cd ../.. && vitest run --project browser",
4444
"test:watch": "cd ../.. && vitest --project browser"

‎packages/browser/test/global-bundle.test.ts‎

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)