-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add support for tailwind.config.mjs and tailwind.config.mts #13927
Comments
Hey! While we can add support for the Vite doesn't have to transpile the Are you running into other issues while using the Hope this helps! |
The issue persists regardless of the extensions used. Currently tailwind only supports |
Thanks, had the same warning, can confirm that changing it to ".mjs" solves the issue 👍 |
Took another deep dive and we figured out a way to get rid of the warning. We also added support for detecting This should be fixed by #13940, and will be available in the next release. You can already try it by using the insiders build |
Awesome, thanks! |
This worked for me as well! So glad to get rid of the message while waiting for the official release. |
@RobinMalfait Hi Robin, |
What version of Tailwind CSS are you using?
tailwindcss 3.4.4
What build tool (or framework if it abstracts the build tool) are you using?
vue 3.4.31, typescript 5.5.2, vue-tsc 2.0.24, vite 5.3.2
What version of Node.js are you using?
node 22.3.0
What browser are you using?
N/A
What operating system are you using?
Windows
Reproduction URL
https://github.com/jscarle/ReproTailwindCSS
Describe your issue
In preparation for Node 22 and ESM module requirements, I have started converting my projects to use
.mts
files so that vite transforms them to.mjs
files. When building the project with vite usingtailwind.config.ts
, node generates the following error:If I change the filename to
tailwind.config.mts
, it no longer finds the configuration.Node 22 documentation
https://nodejs.org/api/esm.html
The text was updated successfully, but these errors were encountered: