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 unflagged JSON modules #4786

Merged
merged 1 commit into from Aug 21, 2022

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Aug 21, 2022

What's the problem this PR addresses?

JSON modules were unflagged in nodejs/node#41736 so we need to do the same in our loader.

Fixes #4245

How did you fix it?

Updated the ESM loader to allow importing JSON modules.

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 Aug 21, 2022
@merceyz merceyz force-pushed the merceyz/fix/esm-unflagged-json-modules branch from 1ec3023 to ae70853 Compare August 21, 2022 17:12
@arcanis arcanis merged commit e0d8a1b into master Aug 21, 2022
@arcanis arcanis deleted the merceyz/fix/esm-unflagged-json-modules branch August 21, 2022 18:39
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 loader cannot handle jsons
2 participants