-
Notifications
You must be signed in to change notification settings - Fork 209
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
rename esm modules to .mjs
#359
Conversation
@PuruVJ @raulfdm @brandonryan @JakeChampion @rqbazan @nosovk OK I've renamed all ESM modules to have Unless there are objections I'm going to merge this. Remaining optimizations that I can see we might want:
Feedback welcome! I probably missed something :) |
Hey @angus-c . I've created a repository that can help you to test within different apps: https://github.com/devraul/just-test I tried to write a minimum README so you can understand how to do. Take a look and let me know if there's anything else I can help you with. |
Thanks @raulfdm, will take a look tomorrow. |
Hey @raulfdm, love All apps passed with this PR (
Not sure what the issue is here. When I used [email protected] (current master), five of the apps in just-test failed ( So bottom line, I'm going to land and publish this PR 😀 |
just-diff is still exporting an object as default, so it won't work 🥲 |
https://github.com/angus-c/just/blob/master/packages/collection-diff/index.mjs#L146 |
Ohhh my bad 😅 |
Maybe it;s how we're exporting in package.json that's an isssue. Maybe have a look at how I am doing it in all-of-just? https://github.com/PuruVJ/all-of-just/blob/main/package.json PS: this package.json ends up in dist, so that's why paths are relative to dist only |
@PuruVJ just to be clear, I'm not sure there is a problem with this PR. It passes in every app type in @raulfdm's just-test except sveletekit. Need someone to test it in RL sveltekit instance to confirm whether this is an issue. Regardless landing this PR made a big improvement across the app ecosystem and I don't want to rush to make patches for one app type if they will break other apps or compromise established standards. The only difference I see with all-of-just is your |
@angus-c about testing in a real Sveltekit, #332 (comment) check this comment. This "MailCheck" website uses Sveltekit and a particular "just-*" package. What you can do to see in is cloning this repository inside |
Thanks @raulfdm. Will check when I have a chance (also this PR is now published so I will ask the app author directly) |
@angus-c @raulfdm |
@nosovk great, thanks for letting me know |
No description provided.