Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Set file extensions for package entry files #513

Merged
merged 1 commit into from Mar 16, 2023
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Mar 8, 2023

If the package type is CommonJS all .js files will be handled as if they are CommonJS, even if exports is set to module. Same if type is set to ESM, then all .js files are handled as if they are modules. So the file extension has to be set to the explicit type.

If the package type is CommonJS all `.js` files will be handled
as if they are CommonJS, even if exports is set to module.
Same if type is set to ESM, then all `.js` files are handled as
if they are modules. So the file extension has to be set to the explicit type.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux susnux added the bug Something isn't working label Mar 8, 2023
@skjnldsv skjnldsv merged commit 85fc2a3 into master Mar 16, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/es-modul branch March 16, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants