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
"CommonJS or AMD" warnings #354
Comments
It shouldn't be normal, |
If they do, I wonder why the compiler complains |
Ok, I've investigated a little bit more and it looks like imports need to have Anyway, I'm not sure if fixing If you want to help try installing Cheers! |
So i investigated a little bit into this and it seems like this is an issue of date-fns. Using So the warning is nice and correct and should not be ignored / suppressed by use of allowedCommonJsDependencies Issue: date-fns/date-fns#2207 |
That's good to know, thanks for taking the time to research this. |
date-fns/date-fns#2339 |
Thanks for pointing that out @jpduckwo , I will keep an eye on that PR. Cheers! |
FYI, a new version just came out that fixes the issue: |
Tree shaking is fixed from |
Question: Is it normal to have warnings like
...js depends on 'date-fns/...'. CommonJS or AMD dependencies can cause optimization bailouts.
and is the supposed way to fix it to add date-fns toallowedCommonJsDependencies
? If so, doesnt it make sense to add the instruction to the readme?Also is there an open issue on date-fns project to build ecmascript modules?
The text was updated successfully, but these errors were encountered: