marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
8.04k stars 290 forks source link

chore: rename tailwind.config.js to .cjs #2818

Closed metaboulie closed 3 weeks ago

metaboulie commented 3 weeks ago

📝 Summary

https://github.com/tailwindlabs/tailwindcss/issues/14818

Rename Tailwind config to use .cjs extension

When using "type": "module" in package.json, Node.js treats .js files as ES modules by default. Since the Tailwind config uses CommonJS (module.exports), it needs the .cjs extension to explicitly indicate it's a CommonJS module.

Testing

🔍 Description of Changes

Why

Our project uses "type": "module" in package.json, which means Node.js treats .js files as ES modules by default. Since the Tailwind config file uses CommonJS syntax (module.exports), it needs to use the .cjs extension to explicitly indicate it's a CommonJS module.

This change prevents potential issues where Node might try to interpret the Tailwind config as an ES module, which would fail since it uses CommonJS syntax.

📋 Checklist

📜 Reviewers

@akshayka OR @mscolnick

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 5:47am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 5:47am
github-actions[bot] commented 3 weeks ago

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.9.17-dev2