Skip to content

fix: Correct ES6 wrapper imports in static-module output#2151

Merged
dcodeIO merged 1 commit intomasterfrom
patch/fix-es6-wrapper
Apr 24, 2026
Merged

fix: Correct ES6 wrapper imports in static-module output#2151
dcodeIO merged 1 commit intomasterfrom
patch/fix-es6-wrapper

Conversation

@dcodeIO
Copy link
Copy Markdown
Member

@dcodeIO dcodeIO commented Apr 23, 2026

Updates ES6 static-module output to import protobufjs/minimal.js via a default import, which makes the generated code work in native ESM runtimes without the need to add a package exports field just yet.

Fixes #1657
Fixes #1862
Fixes #1929
Fixes #2040
Fixes #2048
Fixes #2086

Supersedes #2084

Related to #1930
Related to #1931

@dcodeIO dcodeIO merged commit 88f5a76 into master Apr 24, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 24, 2026
@dcodeIO dcodeIO deleted the patch/fix-es6-wrapper branch April 29, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment