Skip to content

Remove deprecated exports path mapping #323

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

Closed
wants to merge 1 commit into from

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented May 25, 2022

Background

Node versions prior to 16.x often used "./" to allow deep package imports during the introduction of the exports field. Starting with node 16.x folder mappings are deprecated and should not be used.

Related: preactjs/preact#3299

Solution

Drop the field, since it's deprecated and not necessary. Instead every package entry point should be explicitely declared via exports.

🎩

  • ...

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

@marvinhagemeister marvinhagemeister marked this pull request as ready for review May 25, 2022 09:55
@marvinhagemeister
Copy link
Contributor Author

Closing, didn't realise we had a PR already open for this. See #292 .

@marvinhagemeister marvinhagemeister deleted the disallowed-exports-path branch May 25, 2022 13:16
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