Skip to content

Commit eb0df2a

Browse files
committed
wip
1 parent 8578bbf commit eb0df2a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### Browser Support
2+
3+
| Format | Description | Path |
4+
|--------|-------------|------|
5+
| `cjs` (CommonJS modules) | For npm library users | `/dist/cjs/index.js` |
6+
| `esm` (ES6 modules) | For npm library users | `/dist/esm/index.js` |
7+
| `global` (bundle) | This function simple exposes `globalThis.SignalsRuntime` | `/dist/global/index.js` |
8+
| `umd` (umd bundle) | When a UMD bundle is required | `/dist/umd/analytics-onetrust.umd.js` |
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { SignalsRuntime } from './index'
22

3+
// the purpose of this is to create an artifact that can be uploaded to a CDN used in the mobile runtime, as well as the editor browser.
4+
// the web version can use this package directly.
5+
36
// @ts-ignore
4-
window.SignalsRuntime = SignalsRuntime
7+
globalThis.SignalsRuntime = SignalsRuntime

0 commit comments

Comments
 (0)