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

[Feature] Support tree shaking for mdx files #381

Open
Codpoe opened this issue Sep 27, 2024 · 0 comments
Open

[Feature] Support tree shaking for mdx files #381

Codpoe opened this issue Sep 27, 2024 · 0 comments

Comments

@Codpoe
Copy link
Contributor

Codpoe commented Sep 27, 2024

I use mdx files as routing files in FileSystemRouter, such as src/pages/a.mdx?pick=default&pick=frontmatter, and then use @mdxjs/rollup to compile these mdx files and convert them to JS format.

However, currently the tree-shake vite plugin of vinxi does not support the mdx and md ext, so I would like to ask if it can be implemented.

if (query.has("pick") && ["js", "jsx", "ts", "tsx"].includes(ext)) {

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

No branches or pull requests

1 participant