carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.71k stars 261 forks source link

chore: add `exports` field to package.json #1864

Closed hslee2008 closed 11 months ago

hslee2008 commented 11 months ago

1863

metonym commented 11 months ago

Thanks for this. In my testing, subpaths for css and src need to included as well.

Otherwise, these imports would fail when Vite attempts to prebundle the library:

import "carbon-components-svelte/css/all.css";
import Button from "carbon-components-svelte/src/Button/Button.svelte";
metonym commented 11 months ago

Fixed in v0.82.5