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

Merged

Commits on May 29, 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 authored and RobinMalfait committed May 29, 2024
    Configuration menu
    Copy the full SHA
    c4df2e6 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 authored and RobinMalfait committed May 29, 2024
    Configuration menu
    Copy the full SHA
    958e28a View commit details
    Browse the repository at this point in the history
  3. update changelog

    RobinMalfait committed May 29, 2024
    Configuration menu
    Copy the full SHA
    df39a64 View commit details
    Browse the repository at this point in the history