Eric Liu
Eric Liu
Could you provide a quick code snippet that I can repro with? Happy to take a look.
Noted, thank you! Currently, this library does not support v5 (#128). For now, I'd like to continue supporting v3, v4 as best as possible. I still think it's worth to...
Related #256. I think it could share a similar API/function to highlighted lines. The "effect" could be a custom background color, blurring etc.
@laurenceokite Currently, `carbon-preprocess-svelte` offers a [Vite plugin](https://github.com/carbon-design-system/carbon-preprocess-svelte?tab=readme-ov-file#optimizecss) that will prune unused Carbon CSS in the build step. I would recommend trying that if using the pre-generated CSS from this library.
@laurenceokite That's correct; the `optimizeCss` plugin is cautious in its approach. To minimize false positives, the plugin will only remove Carbon-specific classes (e.g., classes starting with `.bx--` prefix) for unused...
CC @brunnerh – would value any insight/thoughts you might have here. Short term goal is to avoid development warnings if using Svelte 5.
Great, thanks for the review. Keeping track of Svelte 5 compatibility issues in #2012.
Fixed in [v0.85.3](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.85.3)
Apologies for the late reply. Based on the error `dayjs(timetsamp).from is not a function`, I suspect the issue may be related to `dayjs` not having yet used the `relativeTime` plugin...
This is unexpected. Could you first try restarting the Svelte Language Server in your IDE?