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

revert extensionless codebase #363

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

enapupe
Copy link
Contributor

@enapupe enapupe commented Nov 13, 2023

Turns out there are major drawbacks in the previous change.

Let that be a warning to the next person that is trying to simplify things in the JS world in the current times: DON'T!

TSC doesn't "support" having extension-less imports when compiling a module, they refuse to make the right links, this only works with commonjs. Jest in the other hand doesn't fully support this approach so we'll have to keep building files before testing or try some experimental solutions meanwhile.

IMHO ideally we should stick to basic commonjs modules and wait until the ecosystem is more developed towards modules. Reverting to commonjs may not be worth the trouble right now so we just keep things going as they are.

@vnugent vnugent merged commit 2e9f04c into develop Nov 13, 2023
1 check passed
@enapupe enapupe deleted the enapupe/revert-extensionless branch November 13, 2023 18:29
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