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: nexgen ts module resolutions #124

Merged
merged 1 commit into from Feb 28, 2023
Merged

fix: nexgen ts module resolutions #124

merged 1 commit into from Feb 28, 2023

Conversation

marbemac
Copy link
Contributor

@marbemac marbemac commented Feb 27, 2023

Defines types in the exports map, so that imports work when leveraging the newer moduleResolution tsconfig values (nodenext, node16, bundler).

More info: microsoft/TypeScript#52363

Note that some of the example PRs linked to from the TS issue above are adding types to each specific condition inside of exports. In my experiments just adding types to the root of the exports map resolved the issues 🤷‍♂️.

Before (after, types work as expected):

Screenshot 2023-02-27 at 3 25 02 PM

@netlify
Copy link

netlify bot commented Feb 27, 2023

Deploy Preview for kobalte ready!

Name Link
🔨 Latest commit 675e786
🔍 Latest deploy log https://app.netlify.com/sites/kobalte/deploys/63fd20bb748295000852275e
😎 Deploy Preview https://deploy-preview-124--kobalte.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@fabien-ml fabien-ml changed the base branch from main to develop February 28, 2023 07:28
@fabien-ml fabien-ml merged commit cc15c46 into kobaltedev:develop Feb 28, 2023
@fabien-ml
Copy link
Collaborator

Hi, thanks.

@marbemac marbemac deleted the fix-nodenext-modules branch February 28, 2023 15:15
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

2 participants