fix(webpack-plugin): ship dist/config.js and config.mjs in published package#3990
Merged
Conversation
Contributor
|
marandaneto
approved these changes
Jun 26, 2026
Contributor
Contributor
|
Size Change: 0 B Total Size: 16.9 MB ℹ️ View Unchanged
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #3988
@posthog/webpack-plugin@1.5.25(currentlatest) shipped a broken tarball:dist/index.js/dist/index.mjsresolve./config.js/./config.mjs, but onlydist/config.d.tsmade it into the published package.next build(via@posthog/nextjs-config, whose^1.5.24range resolves to 1.5.25) fails withError: Cannot find module './config.js'.The source-level cause landed in #3962 (
source.entry: { index: 'src/index.ts' }underbundle: falsedroppedconfig.tsfrom emission) and the rslib config was already corrected onmainin #3985 (index: ['src/**/*', '!src/**/*.spec.ts']). That fix was never released — there was no changeset — so npmlatestis still the broken 1.5.25.Changes
@posthog/webpack-pluginso the already-merged build fix is released as 1.5.26.Verified the fix on
mainbefore opening this PR:Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
DRI: @ioannisj.