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

Ability to use without nextjs #122

Open
amcdnl opened this issue May 16, 2024 · 3 comments
Open

Ability to use without nextjs #122

amcdnl opened this issue May 16, 2024 · 3 comments

Comments

@amcdnl
Copy link

amcdnl commented May 16, 2024

I have a component library ( reablocks.dev ) that uses Storybook MDX I'd like to use mdxts on to generate the types for my components using this library. Problem is I don't use next on reablocks ( because its a package not a app ) and thus it errors on install.

@souporserious
Copy link
Owner

The main requirement for Next.js right now is the Webpack loader since I need to generate a glob of modules. Can you configure the Webpack loader yourself or do you need a different bundler loader/plugin? I can also look into a lite mode if the loader can't be used that simply returns static metadata.

@amcdnl
Copy link
Author

amcdnl commented May 23, 2024

Yes I can configure the loader myself !

@souporserious
Copy link
Owner

Ok cool, give the loader a try and let me know if you run into anything. There are some environment variables the Next.js plugin sets up so you'd need these as well.

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

2 participants