Skip to content

docs: use exports to import react component - #74

Open
giuem wants to merge 1 commit into
SukkaW:masterfrom
giuem:docs-borken-import
Open

docs: use exports to import react component#74
giuem wants to merge 1 commit into
SukkaW:masterfrom
giuem:docs-borken-import

Conversation

@giuem

@giuem giuem commented May 18, 2022

Copy link
Copy Markdown

No description provided.

@SukkaW SukkaW left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript's support for the Node.js compatible exports map is still in beta.

@giuem

giuem commented May 25, 2022

Copy link
Copy Markdown
Author

TypeScript 4.7 already released. Shall we followup and set package.json's type to module?

@SukkaW

SukkaW commented May 25, 2022

Copy link
Copy Markdown
Owner

TypeScript 4.7 already released. Shall we followup and set package.json's type to module?

You have to use moduleResolution: nodenext in order to use Node.js exports map in TypeScript, which is still unstable. So no, not yet.

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