Closed metaboulie closed 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 |
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.9.17-dev2
📝 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
tailwind.config.js
totailwind.config.cjs
to properly indicate it's a CommonJS modulecomponents.json
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