react-components icon indicating copy to clipboard operation
react-components copied to clipboard

feat: Add ESM support

Open goulinkh opened this issue 1 year ago • 2 comments

Done

  • Add an ESM submodule in /dist which can be used by importing from import { Button } from "@canonical/react-components/dist/esm".
  • Included a copy of the types in /dist/esm to get the type auto resolution working for the ESM modules.

goulinkh avatar Sep 30 '24 09:09 goulinkh

The issue with Percy and iframe has been fixed (https://github.com/canonical/react-components/pull/1145) so rebasing this branch on main should fix this problem here.

bartaz avatar Oct 01 '24 13:10 bartaz

:tada: This PR is included in version 1.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 07 '24 09:10 github-actions[bot]