-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
chore: use explicit path #3712
base: master
Are you sure you want to change the base?
chore: use explicit path #3712
Conversation
I'm confused about this. I don't see a Github issue or anything that provides context as to why this is necessary other than developer preference. |
I for instances would like to be able to use the original code rather than some down leveled compiled version |
From node's docs:
so, no... it's not just a "developer preference". |
The source code right now is meant to be transpiled. Although I think it would be great if we moved back to a non-transpiled model, based on current supported Node versions. (The problem in the past is that there were breaking changes for downstream dependents that expected functions / function prototypes vs. classes.) But in the short term, I would be hesitant to make this change without some kind of exploration of side-effects. |
can this be merged? |
No, I don't see how this can be merged as there are no tests proving this doesn't break in any Node environment when imported directly. |
It still dose very much depends on compiling the source and consumers do still importing the build version. in any case. how do you propose we go about it and write a test for this? |
It appears that the e2e test has failed, and it's not due to this PR. I will attempt to fix the CI. My pr for CI fix #3774 |
What:
I changed some imports to be explicit (regarding ESM rules)
Remote sources can't just guess what file you meant to import... things such as index.js is bad...
Why:
File extension is mandatory
How:
my vscode settings automatically trims whitespace, so those got included as well...
Checklist:
there are a few places left... but thought i do little by little