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
Do not include momentjs in the browser bundle if DatePicker and/or TimePicker are not used #20579
Closed
1 task done
Closed
1 task done
Comments
It should be fixed in #19115 already. |
@afc163 I already set |
afc163
added a commit
to afc163/hanzluo
that referenced
this issue
Jan 2, 2020
This comment has been minimized.
This comment has been minimized.
lhz516
pushed a commit
to lhz516/hanzluo-legacy
that referenced
this issue
Jan 2, 2020
@zombieJ Tree shaking worked by adding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
https://github.com/lhz516/hanzluo
Steps to reproduce
npm i antd
, but don't import momentjs related componentsWhat is expected?
moment
won't be included in the browser bundle ifDatePicker
and/orTimePicker
are not usedWhat is actually happening?
moment
is in the browser bundle no matter ifDatePicker
and/orTimePicker
are used. At least the locales shouldn't be included.Run
npm ls moment
The text was updated successfully, but these errors were encountered: