v4.56.0
Minor Changes
-
61bc88b: Expose per-component default-export companion entries via the package
exportsmap. Consumers can now
import('@autoguru/overdrive/components/X/default')(or
import Component from '@autoguru/overdrive/components/X/default') and
receive the named component as the module's default export.This unlocks reliable code splitting under
React.lazy()for downstream apps.
The previous
import('@autoguru/overdrive/components/X').then(m => ({ default: m.X }))
pattern is fragile under Rollup's named-export tracking through dynamic-import
namespaces — combined with thesideEffectsallow-list and the
/*#__PURE__*/-annotatedforwardRefcalls in component sources, Rollup can
tree-shake the implementation file out of the lazy chunk, leaving callers with
default: undefinedat runtime. Importing the existingdefault.jscompanion
via/components/X/defaultgives Rollup a direct default-export reference to
track, eliminating that failure mode.The change is purely additive — no existing import paths or behaviours change,
and no component file'ssideEffectsstatus is altered.