Skip to content

fix(vite): empty commonjs files with only __esModule#3540

Merged
marvinhagemeister merged 1 commit into
mainfrom
cjs-esmodule-only
Oct 8, 2025
Merged

fix(vite): empty commonjs files with only __esModule#3540
marvinhagemeister merged 1 commit into
mainfrom
cjs-esmodule-only

Conversation

@marvinhagemeister
Copy link
Copy Markdown
Contributor

@marvinhagemeister marvinhagemeister commented Oct 8, 2025

When modules only contain the __esModule flag, we still need to add the exports and module.exports initializers.

@marvinhagemeister marvinhagemeister merged commit 4b069ee into main Oct 8, 2025
10 checks passed
@marvinhagemeister marvinhagemeister deleted the cjs-esmodule-only branch October 8, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant