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: CJS fallbacks should be at the end not at beginning #103

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jul 17, 2023

  • when defining the old CJS main and module, these properties should come after exports (new ESM prop) so that newer Node will try exports first and not try fallback first, while for old Node it will automatically use the fallbacks since exports won't work, see this TypeScript for more info (https://www.typescriptlang.org/docs/handbook/esm-node.html)

- when defining the old CJS `main` and `module`, these properties should come after `exports` (new ESM prop) so that newer Node will try `exports` first and not try fallback first, while for old Node it will automatically use the fallbacks since `exports` won't work
@github-actions
Copy link

🎭 Playwright Summary - Success 🎉

Playwright Report

[email protected] test:e2e /home/runner/work/multiple-select-vanilla/multiple-select-vanilla
playwright test --config playwright/playwright.config.ts

Running 66 tests using 1 worker
··································································
66 passed (1.2m)

@ghiscoding ghiscoding merged commit febdc9c into main Jul 17, 2023
@ghiscoding ghiscoding deleted the bugfix/cjs-esm-hybrid branch July 17, 2023 21:59
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.

1 participant