react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Depends on jQuery

Open abhinavrastogi opened this issue 10 years ago • 10 comments

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

abhinavrastogi avatar Feb 18 '16 06:02 abhinavrastogi

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

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

akiran avatar Feb 18 '16 06:02 akiran

please move original slick to dev Dependencies @akiran

yiminghe avatar Jul 08 '16 05:07 yiminghe

It depends on slick for CSS.

akiran avatar Jul 08 '16 05:07 akiran

can you copy slick css to you project?

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

yiminghe avatar Jul 08 '16 06:07 yiminghe

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

ShinyLeee avatar Dec 21 '16 14:12 ShinyLeee

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

Gervwyk avatar Sep 16 '17 21:09 Gervwyk

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

akiran avatar Sep 17 '17 13:09 akiran

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?

Gervwyk avatar Sep 18 '17 12:09 Gervwyk

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

akiran avatar Sep 18 '17 13:09 akiran

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.

Gervwyk avatar Sep 18 '17 16:09 Gervwyk