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 issue with TS rewriting fetch dynamic imports #878

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Conversation

adamjmcgrath
Copy link
Contributor

Changes

https://github.com/auth0/node-auth0/releases/tag/v4.0.0-beta.4 broke the CJS version of the Beta because TypeScript was rewriting the node-fetch@3 dynamic imports. (see microsoft/TypeScript#43329)

The suggestion to use moduleResolution: node16 works (have npm packd and tested native esm and cjs) - I've diffed the build and the only differences are the removal of transpiled imports.

Will add some automated tests to make sure we don't break the exports again... 🤦

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner June 28, 2023 17:38
@adamjmcgrath adamjmcgrath merged commit 69e7d8e into beta Jun 28, 2023
1 check passed
@adamjmcgrath adamjmcgrath deleted the fix-cjs branch June 28, 2023 17:57
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.

2 participants