PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
69 stars 36 forks source link

fix: check if window is available before using on web env #256

Open marandaneto opened 2 months ago

marandaneto commented 2 months ago

Problem

Closes https://github.com/PostHog/posthog-js-lite/issues/255 Similar to https://github.com/PostHog/posthog-js-lite/pull/57

Changes

Release info Sub-libraries affected

Bump level

Libraries affected

Changelog notes

github-actions[bot] commented 2 months ago

Size Change: +281 B (+0.38%)

Total Size: 73.8 kB

Filename Size Change
posthog-web/lib/index.cjs.js 16.9 kB +143 B (+0.85%)
posthog-web/lib/index.esm.js 16.9 kB +138 B (+0.82%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `posthog-node/lib/index.cjs.js` | 20 kB | | `posthog-node/lib/index.esm.js` | 20 kB |

compressed-size-action