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: bump sort-unwind to verson without default export #635

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

philihp
Copy link
Owner

@philihp philihp commented Jul 20, 2024

I believe there's an issue with the way default exports in CJS is weird, shown with the example in #627 (comment)

I added a named export to sort-unwind, so that should work around this. If that doesn't work, I think there's a tsconfig option that can be flipped (https://www.typescriptlang.org/docs/handbook/modules/appendices/esm-cjs-interop.html), but I don't fully understand the implications of that, and another alternative would be to inline sort-unwind, but I'd prefer to keep modules smaller.

@philihp philihp merged commit a1fb178 into main Jul 20, 2024
5 checks passed
@philihp philihp deleted the no-default-export-on-unwind branch July 20, 2024 11:25
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 88c68b4 on no-default-export-on-unwind
into 519a635 on main.

philihp added a commit that referenced this pull request Jul 20, 2024
* 'main' of github.com:philihp/openskill.js:
  fix: bump sort-unwind to verson without default export (#635)
  fix(deps): update dependency sort-unwind to v3.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants