Skip to content

fix: exported types for conditional exports - #1526

Closed
Suneil Nyamathi (snyamathi) wants to merge 6 commits into
RocketCommunicationsInc:mainfrom
snyamathi:patch-2
Closed

Suneil Nyamathi (snyamathi) wants to merge 6 commits into
RocketCommunicationsInc:mainfrom
snyamathi:patch-2

Conversation

@snyamathi

Copy link
Copy Markdown
Contributor

Brief Description

https://nodejs.org/api/packages.html#conditional-exports the exports takes precedence over the top level types field - as a result, typescript types are broken in v8 due to the changes in fecfc74#diff-7298512f791c54d2827facfc8d26ae8a5db2ac960e464e30953ccaab05dd412eR10

JIRA Link

Related Issue

#1500 pretty sure the regression was introduced here

General Notes

I've tested this locally using patch-package but I'm not sure how else to add a test for this

Motivation and Context

Issues and Limitations

Types of changes

  • Bug fix
  • New feature
  • Breaking change

Checklist

  • This PR adds or removes a Storybook story.
  • I have added tests to cover my changes.
  • Regressions are passing and/or failures are documented
  • Changes have been checked in evergreen browsers

@netlify

netlify Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for astro-preview failed. Why did it fail? →

Name Link
🔨 Latest commit 163694e
🔍 Latest deploy log https://app.netlify.com/projects/astro-preview/deploys/6a73a2a4cb99610008011766

@changeset-bot

changeset-bot Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 163694e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for astro-stencil failed. Why did it fail? →

Name Link
🔨 Latest commit 163694e
🔍 Latest deploy log https://app.netlify.com/projects/astro-stencil/deploys/6a73a2a67d3c110008be0a5f

@snyamathi

Copy link
Copy Markdown
Contributor Author

Let me test this a bit more - not ready yet, will re-open.

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