-
-
Notifications
You must be signed in to change notification settings - Fork 735
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: improve css exports in package.json #2547
Conversation
Signed-off-by: Karl Shea <[email protected]>
Is the build-website fail after you pushed up the change? It's crazy that it's impossible to find decent docs about how module resolution is supposed to work. sass-loader says it uses webpack's resolution and they have docs here: https://webpack.js.org/configuration/resolve/ According to those what you originally had should have worked. I'll open an issue with sass-loader and see if they have any input. |
Discussion link here: webpack/webpack#18866 |
Signed-off-by: Karl Shea <[email protected]>
Got an answer in that discussion, sass-loader checks a different key! |
Oh I see you fixed the import. So I guess it could go either way, the change I just pushed to add |
@karlshea yes I've patched your PR with some more changes.
I won't touch it anymore :D thanks for your help here hopefully will help your work. BTW the TypeScript exports are now: |
Thanks for taking a look! Also would like to say thanks for the package, I spent the last several days moving a big project from moment/react-datetime to date-fns/react-day-picker and it's been very nice to work with! |
Thank you for your kind words and support! If you have the time, we’d love for you to share your experiences or any suggestions on how we can further improve the library. |
(will publish the fix later in the day...) |
The only thing I ran into is actually #2549 and then saw there was an open issue for it already, but it's not a huge blocker or anything. Everything else just worked how I would have hoped! |
Pull Request Template
Thanks for your PR! Make sure you have read the CONTRIBUTING guide.
What's Changed
Briefly describe the changes in this pull request.
Type of Change
Tips for a good PR
Thanks
Additional Notes
Test PR updating stylesheet exports to fix SASS file resolution using sass-loader and webpack.