davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.39k stars 166 forks source link

ESM d.ts point to non-existent .ts files #668

Closed NikitaIT closed 6 months ago

NikitaIT commented 6 months ago

Bug is related to

https://github.com/davidjerleke/embla-carousel/blob/b3b8554b06100b03766d0d1dbcc503962d7aeeb4/rollup.config.js#L125-L127

Embla Carousel version

Describe the bug

Incorrect ESM:

export { EmblaOptionsType } from 'embla-carousel/components/Options.ts';
export { EmblaEventType, EmblaEventListType } from 'embla-carousel/components/EventHandler.ts';
export { EmblaPluginType } from 'embla-carousel/components/Plugins.ts';
export { EmblaCarouselType } from 'embla-carousel/components/EmblaCarousel.ts';
export { UseEmblaCarouselType } from './components/useEmblaCarousel.ts';
export { default } from './components/useEmblaCarousel.ts';
image

Expected behavior

export { EmblaOptionsType } from 'embla-carousel/components/Options';
export { EmblaEventType, EmblaEventListType } from 'embla-carousel/components/EventHandler';
export { EmblaPluginType } from 'embla-carousel/components/Plugins';
export { EmblaCarouselType } from 'embla-carousel/components/EmblaCarousel';
export { UseEmblaCarouselType } from './components/useEmblaCarousel';
export { default } from './components/useEmblaCarousel';

Additional context

image
davidjerleke commented 6 months ago

@NikitaIT did you search issues before creating this bug report?