Adapter that exposes Aurelia v1 application lifecycle methods (bootstrap, mount, unmount) to single-spa. Version 1.0.10 is the current stable release. It manually bootstraps Aurelia, starts it, and sets the root on mount; for unmount it removes, detaches, and unbinds the root component (since Aurelia has no teardown API). Requires Aurelia v1, single-spa, and explicit dependency injection via Container.instance. Differentiates by providing a custom singleton (SingleSpaAureliaCustomProps) for passing customProps to Aurelia views, and supports debug logging. Known limitation: no official teardown means manual cleanup is used, which can lead to memory leaks if not handled carefully.
npm install single-spa-aurelia-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Exposes single-spa lifecycle methods from an Aurelia v1 application using the adapter.
Manually clean up subscriptions, timers, and event listeners in your Aurelia view models or use a framework that supports proper teardown.
Pass customProps as { payload: { user: ..., locale: ... } } in registerApplication().Replace PLATFORM.moduleName('app') with 'app'.Ensure your configure() only sets up plugins and features, not start/setRoot.
Ensure aurelia-dependency-injection is imported and Container is available before calling getInstance.
Remove aurelia.start() and aurelia.setRoot() from the configure function.
Ensure mount lifecycle completes before unmount is triggered, and check the component option.