Eric Liu
Eric Liu
Code editor: https://github.com/carbon-design-system/sveld/blob/main/playground/CodeEditor.svelte Code highlighter: https://github.com/carbon-design-system/sveld/blob/main/playground/CodeHighlighter.svelte
No – you would have to use the `highlight.js` API directly. https://github.com/metonym/svelte-highlight/blob/c29cf2010a235749defdff6408bb82a6c51ffd72/src/Highlight.svelte#L80-L81
@andreavaccari Which Carbon components are you importing? Try using the `optimizeImports` preprocessor in conjunction with the Carbon Svelte library. This is what my `vite.config.js` looks like: ```js import { svelte...
> Removing both icons() and pictograms() fixes the bug. That's interesting, as neither `icons` nor `pictograms` processes the script block. Curious - how are you using `carbon-icons-svelte`? Because the `icons`...
> After going through docs again, I get the feeling that I misunderstood the docs when I installed carbon-preprocess-svelte. It seems that in my case, using icons() preprocessor is not...
That's a good point – if using TypeScript, `svelte-preprocess` must be invoked first.
@d0x7 The icons preprocessor hasn't yet been updated to use Carbon Icons v11. Instead of `Airplay`, can you try specifying the icon size in the name (e.g., `Airplay20`)?
What type of set-up are you using? What value do you have for the `emitCSS` compiler options?
What happens if you remove the `optimizeCss` and re-build it?
Yes – it seems that `optimizeCss` removes those incorrectly. Transferring this issue to carbon-preprocess-svelte.