Fixed in #87 — the scaffold's vite.config.ts now declares optimizeDeps.include for use-sync-external-store, use-sync-external-store/shim, and use-sync-external-store/shim/with-selector so the CJS shim is pre-bundled to ESM. Verified at framework/cli/simple_module_cli/templates/host/client_app/vite.config.ts.
Fixed in #87 — the scaffold's
vite.config.tsnow declaresoptimizeDeps.includeforuse-sync-external-store,use-sync-external-store/shim, anduse-sync-external-store/shim/with-selectorso the CJS shim is pre-bundled to ESM. Verified atframework/cli/simple_module_cli/templates/host/client_app/vite.config.ts.