-
Notifications
You must be signed in to change notification settings - Fork 5k
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: build a valid config depending on file extension #942
base: main
Are you sure you want to change the base?
Conversation
@juliusmarminge is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Yo @shadcn want me to get this up to date and ship? create-next-app now also generates a .ts file |
@juliusmarminge Yes. I was going to comment that I like your esm config approach here. Let's keep this open. I'll review and merge. |
This PR makes sure that the content of the built tailwind config always matches what "mode" we're in.
import type
as well asexport default {} satisfies Config
module.exports = config
export default config
for .js configs, we check if we're in a module. if yes, use a ESM config, else use a CJS config
Closes #406