-
-
Notifications
You must be signed in to change notification settings - Fork 918
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
build: add redirect aliases for cjs #520
Conversation
Codecov Report
@@ Coverage Diff @@
## main #520 +/- ##
=======================================
Coverage ? 99.34%
=======================================
Files ? 1919
Lines ? 176294
Branches ? 904
=======================================
Hits ? 175137
Misses ? 1101
Partials ? 56 |
Tested successfully with my locale playground against |
c248ae5
to
665839b
Compare
Should we do the same for |
locales is not exported from the This is only for usage of
everything else is not supported (currently) |
665839b
to
0926f1b
Compare
Our
package.json
sexports
field seems not to work for any case 🤔This creates a
locale/<locale>.js
file for every locale when bundling for cjs so node/npm versions that does not support the exports field can use these redirects.At least this should work for now and we can release a 6.0.0 soon