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

chore: exports condition add types #265

Merged
merged 1 commit into from
May 22, 2024
Merged

chore: exports condition add types #265

merged 1 commit into from
May 22, 2024

Conversation

Gehbt
Copy link
Contributor

@Gehbt Gehbt commented May 9, 2024

Config "modeResolution": "bundler" will read exports condiction types to get type

@danielroe
Copy link
Member

If it is omitted, it will look for ./dist/module.d.mts for import and, ./dist/module.d.cts for require.

Are you opening this PR because you are encountering an issue?

@Gehbt
Copy link
Contributor Author

Gehbt commented May 10, 2024

The first problem I find is from nuxt-monaco-editor, and I search the solve at nuxt/sitemap or nuxt-modules/tailwindcss
with issue

Sometime, the module haven't module.d.mts or module.d.cts but typically includes types.d.ts. if someone want register config to @nuxt/schema, he should set this. If it is as a convention.

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