You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in tailwindlabs/tailwindcss#2284, it is possible to still use Tailwind in a ESM environment by declaring the config file to have a .cjs file extension. That said, it breaks the activation event & sourcing of the config as it is looking for various options ending with .js.
I'm curious if it would be possible to add functionality for this extension to pick up tailwind config files that end with .cjs
The text was updated successfully, but these errors were encountered:
Does the extension only work with CJS? Changing tailwind.config.js to ESM results in an error - the tailwindServer.js file tries to require instead of import.
kulla
added a commit
to serlo/serlo-editor-for-edusharing
that referenced
this issue
Dec 20, 2022
As discussed in tailwindlabs/tailwindcss#2284, it is possible to still use Tailwind in a ESM environment by declaring the config file to have a
.cjs
file extension. That said, it breaks the activation event & sourcing of the config as it is looking for various options ending with.js
.I'm curious if it would be possible to add functionality for this extension to pick up tailwind config files that end with
.cjs
The text was updated successfully, but these errors were encountered: