Skip to content

re-order exports object in package.json per spec#8

Open
jeffhuys wants to merge 2 commits intoivesia:masterfrom
jeffhuys:fix-require-error
Open

re-order exports object in package.json per spec#8
jeffhuys wants to merge 2 commits intoivesia:masterfrom
jeffhuys:fix-require-error

Conversation

@jeffhuys
Copy link

Recent PR #2 by @CommanderStorm broke our build (and @ericleponner 's - see #7).

Looking at PR #2 and comparing it to the spec (https://nodejs.org/api/packages.html#conditional-exports) shows me that the ordering of the object is not correct.

Specifically this part:

"default" - the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last

This PR aims to fix this. Confirmed to fix on our end.

@tkamstra
Copy link

Can this please be merged in, this fixes an issue we are also seeing

@FryDay
Copy link

FryDay commented Dec 15, 2023

Any update on getting this merged? We are stuck on 1.0.1 until it is.

leob added a commit to leob/vite-plugin-rewrite-all that referenced this pull request Jun 29, 2024
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.

4 participants