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(pnp): esm - support import attributes #6268

Merged
merged 1 commit into from
May 6, 2024

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented May 2, 2024

What's the problem this PR addresses?

In Node.js v22 import assertions were replaced with import attributes so we need to add support for those as well.

Fixes #6267

How did you fix it?

Added support for the importAttributes property.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz added the esm label May 2, 2024
@merceyz merceyz requested a review from arcanis as a code owner May 2, 2024 23:00
@arcanis arcanis merged commit ebf9a0d into master May 6, 2024
25 of 29 checks passed
@arcanis arcanis deleted the merceyz/fix/pnp-import-attribute branch May 6, 2024 08:32
merceyz added a commit that referenced this pull request May 8, 2024
**What's the problem this PR addresses?**

In Node.js v22 import assertions were replaced with import attributes so
we need to add support for those as well.

Fixes #6267

**How did you fix it?**

Added support for the `importAttributes` property.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?]: pnp-esm.test.ts fails on node 22
3 participants