Skip to content

Conversation

@rschristian
Copy link
Member

@rschristian rschristian commented Jun 4, 2025

These were originally added in #3565 to support our use of .module.js as ESM in tools like Vite & Vitest (which incorrectly implement the top-level "module" spec) as they use a non-standard resolution mechanism which allows this to be a viable hack.

This has become unnecessary in v11 though, we're exclusively using .mjs for ESM and so these serve no real purpose anymore. We could get rid of the nested package.json files altogether and move the Microbundle config into the root package.json too if we wanted at some point, but I'll leave that for now.

While I was at it I removed left-over "script" & "version" entries (AFAICT "version" was never requested/needed by anyone, might've been copy/pasted in without much thought?) and re-ordered the keys to make the files consistent. Sorry for the OCD 😅

@rschristian rschristian changed the title refactor: Remove all export maps in nested pkg.json files refactor (v11): Remove all export maps in nested pkg.json files Jun 4, 2025
Base automatically changed from v11-2 to main June 6, 2025 17:27
@rschristian rschristian force-pushed the refactor/remove-nested-export-maps branch from b4435a4 to c5f1f3d Compare June 7, 2025 03:39
@rschristian rschristian force-pushed the refactor/remove-nested-export-maps branch from c5f1f3d to 221c9b7 Compare June 7, 2025 06:40
@rschristian rschristian merged commit ee5d7e8 into main Jun 7, 2025
4 checks passed
@rschristian rschristian deleted the refactor/remove-nested-export-maps branch June 7, 2025 06:43
@JoviDeCroock JoviDeCroock mentioned this pull request Aug 19, 2025
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.

3 participants