This package depends on types from @mdx-js/mdx but prebundles the code and doesn't have @mdx-js/mdx as a dependency
joshwooding opened this issue · 4 comments
Describe the bug
A clear and concise description of what the bug is.
See https://unpkg.com/@storybook/mdx2-csf@0.1.0-next.8/dist/index.d.ts
This means that mdxCompileOptions is unknown
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
@joshwooding That's a bit tricky. We prebundle the devDependencies with tsup
, so perhaps we just need to export that type? cc @ndelangen
yeah... I tried the naive approach by adding the package to the dts resolve option in tsup but couldn't get it to work
The real question is... why isn't it prebundling the types from that package?
Seems this was actually fixed by @joshwooding 's PR