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: remove node export map entries #7419

Closed
wants to merge 1 commit into from

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Dec 28, 2023

These entries cause node to resolve to commonjs in all cases, rather than respecting the consumer's module type.

For example, a consumer with "type": "module" will still resolve to the commonjs entrypoint since node will choose the node entry before the default entry.

These entries cause node to resolve to commonjs in all cases, rather
than respecting the consumer's module `type`.

For example, a consumer with `"type": "module"` will still resolve to
the commonjs entrypoint since node will choose the `node` entry before
the `default` entry.
@43081j
Copy link
Contributor Author

43081j commented Dec 28, 2023

this has now uncovered that the published ESM doesn't work in node anyhow, since rxjs' type is not "module".

it means we resolve to the esm entrypoint successfully now (and didn't before), but the resolved file is treated as commonjs.

we would have to rename all the esm output to *.mjs as far as i can tell

@43081j
Copy link
Contributor Author

43081j commented Jan 23, 2024

abandoning this since it sounds like there's a plan to do it as part of a larger change further ahead in future

will just have to manage for now

@43081j 43081j closed this Jan 23, 2024
@43081j 43081j deleted the exportmaps branch January 23, 2024 19:09
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.

None yet

1 participant