React-slick: Depends on jQuery

Created on 18 Feb 2016  路  10Comments  路  Source: akiran/react-slick

This adds 60kb to the webpack bundles. Highly inconvenient!
Would have gladly used it if it was much smaller.

Most helpful comment

It doesn't depend on jQuery.
It's purely written in react.

Dependency on original slick is only for css, not for javascript code

All 10 comments

It doesn't depend on jQuery.
It's purely written in react.

Dependency on original slick is only for css, not for javascript code

please move original slick to dev Dependencies @akiran

It depends on slick for CSS.

can you copy slick css to you project?

react-slick causes our build server to download unnecessary code (slick-carousel, jquery ...).

I think slick-carousel is unnecessary too..
It depend on jquery and I have to download it.

Is there any way to remove the jquery dependency? Looks like it really adds unnecessary content to the bundle size.

jQuery is never added in the bundle. slick-carousel dependency is only for css

Ok. But that means jQuery ends up in bundle because of slick-carousel, which is only used for css. Can't we only copy the css to this project and remove slick-carousel dependency to get rid of jQuery in the bundle?

We use wepack to bundle this library. We never imported jQuery. So it will not be bundled in this library.

Ok. Sorry. my bad. I missed the 鈿狅笍 Also install slick-carousel for css and font part - which actually creates the issue. When using ant design and meteor, the import of antd causes it to import slick-carousel which is jquery dependent and causes this issue.

Was this page helpful?
0 / 5 - 0 ratings