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

ESM/CJS interop #58

Merged
merged 4 commits into from
Mar 29, 2022
Merged

ESM/CJS interop #58

merged 4 commits into from
Mar 29, 2022

Conversation

6utt3rfly
Copy link
Owner

Remove the exports.default entry from package.json to resolve the issue with typescript transpiled to cjs using the ESM (default) module instead of the CJS build as needed

Clean up types, enable commented out tests with newer jsep packages

Fixes #57

using a default export causes the module build file to be used by typescript when it transpiles to cjs, which then doesn't work for mixing esm and cjs. Simply removing the default line resolves the issue.

Fixes #57
working with jsep plugin types then forces those imports into the exported typings, even if a user is not using those plugins. Instead, work with the generic jsep.Expression to simplify the exported types.
@6utt3rfly 6utt3rfly merged commit d2faef7 into main Mar 29, 2022
@6utt3rfly 6utt3rfly deleted the build/esm-cjs branch March 29, 2022 06:53
@github-actions
Copy link

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Require of jse-eval fails when build with typescript
1 participant