-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: upgrade markdown-it types to v14 #3772
Conversation
], | ||
"main": "", | ||
- "types": "index.d.ts", | ||
+ "types": "index.d.mts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this patch, tsc could pass but rollup-plugin-dts would throw an error.
This patch is to make rollup-plugin-dts work. Need more investigation for the root cause.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need more investigation for the root cause.
resolvedCompilerOptions
seem to be always empty here - https://github.com/Swatinem/rollup-plugin-dts/blob/3835bfa27125db7fa5a9d071f0b93ec513d2664b/src/index.ts#L196
If we force moduleResolution bundler there then it resolves to correct files, but then the transform breaks polka by converting export default function<T
to declare functionexport_default<T
Upgrade
@types/markdown-it
and@mdit-vue/*