Your AdonisJS ecosystem, in the loop.
All insights
releaseAction required

Faster Ace CLI startup with targeted imports

· Developer impact : medium

AdonisJS core v7.5.1 introduces targeted entry points for bootstrap code imports, allowing applications to import only necessary modules instead of the entire root entry point. This opt-in change significantly improves the startup time and memory usage of light CLI commands such as `node ace --help` by around 20%, with memory reductions of about 10 MiB. The improvements mainly affect light CLI startup, with minimal gains observed for full boot commands or production server startup.

What this means for your code

Developers can improve the startup performance of Ace CLI commands by switching their bootstrap imports to the new targeted import paths provided by @adonisjs/core. Existing root exports remain available, so this change is opt-in and does not break existing code.

  • Update bootstrap imports to use targeted paths such as '@adonisjs/core/ignitor', '@adonisjs/core/generators', and '@adonisjs/core/config' instead of the root '@adonisjs/core' import.

Original sources

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.

Independent ecosystem watch. Sources linked in every insight.Built with AdonisJS · AI-assisted summariesBy Jérémy Chaufourier · chaufourier.fr