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 parsing nested exports case #335

Merged
merged 2 commits into from
Dec 27, 2023
Merged

Fix parsing nested exports case #335

merged 2 commits into from
Dec 27, 2023

Conversation

huozhi
Copy link
Owner

@huozhi huozhi commented Dec 27, 2023

Should support nested export condition (import or require etc), then the value has both types and default, should get the path from nested condition

       exports: {
            '.': {
              'import': {
                'types': './dist/index.d.ts',
                'default': './dist/index.mjs'
              },
              'require': {
                'types': './dist/index.d.ts',
                'default': './dist/index.js'
              }
            }
          }

@huozhi huozhi merged commit b1923f8 into main Dec 27, 2023
3 checks passed
@huozhi huozhi deleted the fix/nested-exports branch December 27, 2023 21:51
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

1 participant