Skip to content
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

Fix esm compatibility for @headlessui/tailwindcss plugin package #3051

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Mar 21, 2024

  1. Set @headlessui/tailwindcss module type

    The distributed tailwindcss plugin package uses `.js` for esm files, and `.cjs` for commonjs files. This corresponds to `"type": "module"` in the package.json file.
    
    One build script `fix-types.js` was a commonjs script which was breaking this module file naming pattern. Renamed the script to `fix-types.cjs` so that we could then standardise the module type for @headlessui/tailwindcss package as a whole.
    dawnmist committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    9867448 View commit details
    Browse the repository at this point in the history
  2. Fix esm import of tailwindcss/plugin

    ESM imports need to specify the filename extension when importing individual files.
    dawnmist committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c4f0c42 View commit details
    Browse the repository at this point in the history