Contents

@posthog/webpack-plugin

1.8.1

Patch Changes

  • #5664 a7485da Thanks @ioannisj! - Bump @posthog/cli to 0.19.1 so builds outside a git checkout that set only a release version upload source maps with a warning instead of failing with "Release fields are incomplete". (2026-11-11)

1.8.0

Minor Changes

  • #5398 88f8655 Thanks @turnipdabeets! - Fail webpack, Next.js webpack, and Nuxt builds when PostHog cannot process or upload source maps; set sourcemaps.failOnError: false to log the error and continue the build instead. (2026-10-23)

1.7.4

Patch Changes

  • #5386 42bc585 Thanks @turnipdabeets! - Delete source maps when processing or uploading them fails while sourcemaps.deleteAfterUpload is enabled (the default), so they no longer ship in the build output; set deleteAfterUpload: false to keep them. (2026-10-22)

1.7.3

Patch Changes

  • #5351 4182940 Thanks @hpouillot! - Require PostHog CLI 0.18.11 or newer within the 0.18 release line. (2026-10-21)

1.7.2

Patch Changes

  • #5334 0d2c39d Thanks @hpouillot! - Prevent stale webpack runtime caches in Next.js by compiling event release IDs before asset hashing. (2026-10-21)
  • Updated dependencies [189da75]:

1.7.1

Patch Changes

  • #4939 2b5a77d Thanks @marandaneto! - Preserve script Subresource Integrity when uploading source maps, including Next.js builds. (2026-09-14)

1.7.0

Minor Changes

  • #4705 dd5888a Thanks @ablaszkiewicz! - Change the default sourcemaps.releaseMode to event: set sourcemaps.releaseMode: 'symbol-set', or POSTHOG_RELEASE_MODE=symbol-set, to keep binding uploaded symbol sets to a release. The @posthog/plugin-utils bump is major, so an installed plugin keeps the old default until the plugin itself is upgraded.

    event mode requires a posthog-cli with release resolve and --release-mode, and posthog-js 1.409.0, posthog-node 5.47.0, or @posthog/core 1.46.0 at runtime. An older CLI fails a rollup build and skips the upload on webpack and Next.js. An older SDK reports no release on exceptions. (2026-09-02)

Patch Changes

  • #4737 c589ab8 Thanks @cat-ph! - Bump @posthog/cli to ~0.16.2, which fixes a race in sourcemap process: inject and upload used to walk the directory roots separately, so a bundler still writing into the output directory mid-run (e.g. Turbopack's background filesystem-cache flush on Next.js 16.3+) could hand upload a chunk inject never stamped and abort the build with "Chunk ID not found". The CLI now uploads exactly the pairs it injected, and --delete-after cleanup skips files that vanished or changed after upload instead of failing the build. (2026-09-02)
  • Updated dependencies [dd5888a]:

1.6.0

Minor Changes

  • #4563 530d88b Thanks @ablaszkiewicz! - Add experimental sourcemaps.releaseMode: 'event' to the webpack plugin and Next.js config. In event mode posthog-cli resolves the release once and injects its id into every chunk on disk, so exceptions report their release directly instead of it being bound to the uploaded symbol sets, and chunk ids are content-derived so a rebuild of unchanged code reuses the symbol set already uploaded. On webpack >= 5.104 the plugin also turns on webpack's own debug ids, which the CLI adopts as chunk ids, so one id identifies a chunk across the whole toolchain. The option defaults to the POSTHOG_RELEASE_MODE environment variable and then to symbol-set, which behaves exactly as before. Event mode needs a posthog-cli with the release resolve command. (2026-08-24)

Patch Changes

  • #4563 530d88b Thanks @ablaszkiewicz! - Bump @posthog/cli to ~0.14.1, which makes sourcemap inject --release-mode=event adopt a bundler-emitted ECMA-426 debug id as the chunk id instead of deriving its own, so the ids webpack stamps into each chunk are the ones the CLI uploads against. (2026-08-24)

1.5.28

Patch Changes

1.5.27

Patch Changes

1.5.26

Patch Changes

  • #3990 dc702fd Thanks @ioannisj! - Put dist/config.js and dist/config.mjs back in the published package. 1.5.25 shipped only config.d.ts, so next build (via @posthog/nextjs-config) failed with Cannot find module './config.js'. The build now emits config again. (2026-06-26)

1.5.25

[!WARNING] Broken release, do not use. The published package is missing dist/config.js and dist/config.mjs, so builds fail with Cannot find module './config.js'. Upgrade to 1.5.26 or later, or pin 1.5.24. See #3988.

Patch Changes

  • #3962 5310a5e Thanks @marandaneto! - Delete emitted CSS source maps when deleteAfterUpload is enabled without uploading CSS assets to PostHog. (2026-06-25)

1.5.24

Patch Changes

  • #3821 2883857 Thanks @pesoszpesosz! - Add missing MIT license metadata to the published plugin package manifests. (2026-06-15)

1.5.23

Patch Changes

1.5.22

Patch Changes

1.5.21

Patch Changes

1.5.20

Patch Changes

1.5.19

Patch Changes

1.5.18

Patch Changes

1.5.17

Patch Changes

1.5.16

Patch Changes

1.5.15

Patch Changes

1.5.14

Patch Changes

1.5.13

Patch Changes

1.5.12

Patch Changes

1.5.11

Patch Changes

1.5.10

Patch Changes

1.5.9

Patch Changes

1.5.8

Patch Changes

1.5.7

Patch Changes

1.5.6

Patch Changes

1.5.5

Patch Changes

1.5.4

Patch Changes

1.5.3

Patch Changes

1.5.2

Patch Changes

1.5.1

Patch Changes

1.5.0

Minor Changes

  • #3716 3889f02 Thanks @ablaszkiewicz! - Default sourcemaps.enabled to true, matching the other PostHog bundler plugins. Previously it defaulted to NODE_ENV === 'production'. (2026-06-02)

1.4.43

Patch Changes

1.4.42

Patch Changes

1.4.41

Patch Changes

1.4.40

Patch Changes

1.4.39

Patch Changes

1.4.38

Patch Changes

1.4.37

Patch Changes

1.4.36

Patch Changes

1.4.35

Patch Changes

1.4.34

Patch Changes

  • #3661 f12ee73 Thanks @rafaeelaudibert! - Bump @posthog/cli to ~0.7.13, which drops several unused runtime dependencies (axios, axios-proxy-builder, console.table, rimraf). (2026-05-22)

1.4.33

Patch Changes

1.4.32

Patch Changes

1.4.31

Patch Changes

1.4.30

Patch Changes

1.4.29

Patch Changes

1.4.28

Patch Changes

1.4.27

Patch Changes

1.4.26

Patch Changes

1.4.25

Patch Changes

1.4.24

Patch Changes

1.4.23

Patch Changes

1.4.22

Patch Changes

1.4.21

Patch Changes

1.4.20

Patch Changes

1.4.19

Patch Changes

1.4.18

Patch Changes

1.4.17

Patch Changes

1.4.16

Patch Changes

1.4.15

Patch Changes

1.4.14

Patch Changes

1.4.13

Patch Changes

1.4.12

Patch Changes

1.4.11

Patch Changes

1.4.10

Patch Changes

1.4.9

Patch Changes

1.4.8

Patch Changes

1.4.7

Patch Changes

1.4.6

Patch Changes

1.4.5

Patch Changes

1.4.4

Patch Changes

1.4.3

Patch Changes

1.4.2

Patch Changes

1.4.1

Patch Changes

1.4.0

Minor Changes

Patch Changes

1.3.6

Patch Changes

1.3.5

Patch Changes

1.3.4

Patch Changes

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

Patch Changes

1.2.27

Patch Changes

1.2.26

Patch Changes

1.2.25

Patch Changes

1.2.24

Patch Changes

1.2.23

Patch Changes

1.2.22

Patch Changes

  • #3076 91234bb Thanks @hpouillot! - rename sourcemaps config variables with releaseName, releaseVersion, projectId (2026-02-12)

1.2.21

Patch Changes

1.2.20

Patch Changes

1.2.19

Patch Changes

1.2.18

Patch Changes

1.2.17

Patch Changes

1.2.16

Patch Changes

1.2.15

Patch Changes

1.2.14

Patch Changes

1.2.13

Patch Changes

1.2.12

Patch Changes

1.2.11

Patch Changes

1.2.10

Patch Changes

1.2.9

Patch Changes

1.2.8

Patch Changes

1.2.7

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

1.2.4

Patch Changes

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

1.2.0

Minor Changes

  • #2741 5c14781 Thanks @hpouillot! - fix sourcemap upload with complex file path use SourceMapDevToolPlugin to customize sourcemap generation (2025-12-13)

1.1.4

Patch Changes

  • #2690 e9c00fd Thanks @robbie-c! - Related to https://www.wiz.io/blog/critical-vulnerability-in-react-cve-2025-55182

    We didn't include any of the vulnerable deps in any of our packages, however we did have them as dev / test / example project dependencies.

    There was no way that any of these vulnerable packages were included in any of our published packages.

    We've now patched out those dependencies.

    Out of an abundance of caution, let's create a new release of all of our packages. (2025-12-04)

  • Updated dependencies [e9c00fd]:

1.1.3

Patch Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

Patch Changes