Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webiny/wts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.3
Choose a base ref
...
head repository: webiny/wts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.1.4
Choose a head ref
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Jun 5, 2026

  1. fix: load posthog-js via a consumer-injected loader (#9)

    WTS no longer imports posthog-js itself. The web client previously did a bare
    `import("posthog-js")` guarded with `webpackIgnore` so consumers that don't
    record (e.g. the Webiny admin app, which doesn't install posthog-js) could
    still build. But webpackIgnore left a bare module specifier the browser can't
    resolve at runtime, so session recording silently failed in bundled apps (no
    traffic to s.webiny.com).
    
    Add `SessionRecordingConfig.loadPostHog`, a loader the consumer supplies as
    `() => import('posthog-js')`. The import resolves inside the consumer's bundle
    (where posthog-js is installed), and the library contains no posthog-js
    reference at all — so non-recording consumers build cleanly without
    webpackIgnore. Recording is skipped with a warning if no loader is given.
    
    Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    SvenAlHamad and claude authored Jun 5, 2026
    Configuration menu
    Copy the full SHA
    45fcdf8 View commit details
    Browse the repository at this point in the history
Loading