Skip to content

Externalize @simplemodule/ui as a host-provided vendor bundle #261

@antosubash

Description

@antosubash

Found during module-packaging Session 2.

The packaging brief requires module bundles to externalize SimpleModule.UI alongside react/react-dom/@inertiajs/react, but @simplemodule/ui is not in defaultVendors (packages/SimpleModule.Client/src/vite-plugin-vendor.ts) and has no import-map entry — every module inlines the components it uses (a large share of the ~1.3 MB unminified Manage chunk in FeatureFlags).

Needed: vendor bundle(s) for @simplemodule/ui subpath exports (components, lib/utils), import-map entries in the HTML shell, externals in defineModuleConfig, and extending BundleExternalsValidator + the docs externals contract once host-provided.

Until then sm pack validates only the react/inertia externals set (documented in docs/site/advanced/module-packaging.md).

Metadata

Metadata

Assignees

No one assigned

    Labels

    packagingModule packaging & distribution

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions