Optimize imports with carbon-preprocess-svelte
masterYou can use the optimizeImports preprocessor from carbon-preprocess-svelte to allow using concise barrel file import syntax while maintaining fast development times. The preprocessor automatically rewrites imports to the specific file path.
Example transformation:
- import { Add } from "carbon-icons-svelte";
+ import Add from "carbon-icons-svelte/lib/Add.svelte";