Skip to content

Conversation

@mikebarkmin
Copy link
Member

For example Next.js was not able to determine the correct file by just looking at the package.json. Therefore we needed to add mjs to als esm modules, which is also recommended by Node. In this process we switched our build tool from tsc to esbuild to add the correct file-extension and to speed the process up.

Because we now fully support esm the @emotion/styled package was not working anymore, thus we have reworked this too. Now everything should be working in CommonJS and ES-Modules.

There should be no effect on users of this library other than it is now working as expected as an esm.

For example Next.js was not able to determine the correct file by just looking at the package.json.
Therefore we needed to add mjs to als esm modules, which is also recommended by Node. In this
process we switched our build tool from tsc to esbuild to add the correct file-extension and to
speed the process up.Because we now fully support esm the @emotion/styled package was not working
anymore, thus we have reworked this too. Now everything should be working in CommonJS and
ES-Modules.
@mikebarkmin mikebarkmin added the patch Increment the patch version when merged label Jan 4, 2022
@mikebarkmin mikebarkmin merged commit 2dd155d into main Jan 4, 2022
@mikebarkmin mikebarkmin deleted the fix-esm branch January 4, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants