@aphexcms/cms-core@9.5.2
Patch Changes
-
2cc2657Thanks @IcelandicIcecream! - Fixgenerate:typesfailing on plugins that import named iconsThe esbuild stub that strips
@lucide/svelteout of the type-generation
bundle was an ESM module exporting only a default. esbuild validates ESM named
imports against the target module's exports, so any plugin doing
import { Sparkles } from '@lucide/svelte'— which@aphexcms/plugin-seodoes
— failed the bundle with:No matching export in "lucide-stub:@lucide/svelte" for import "Sparkles"The stub (and the
.sveltecomponent stub, which has the same problem) now
emits CommonJS. Named imports off a CJS module are resolved as property access
rather than statically validated, so every icon name works and yields
undefined— which is what the existingicon:rewrite wants anyway.