Skip to content

Conversation

@ccuser44
Copy link
Contributor

Load nightly module in backup boot sequence + use new AssetService:LoadAssetAsync.

This makes Adonis loading a lot more robust.
The new load sequence is:

  1. Attempt to load MainModule via require()
  2. Attempt to load MainModule via AssetService
  3. Attempt to load MainModule via InsertService
  4. Attempt to load NightyModule via require()
  5. Attempt to load NightyModule via AssetService
  6. Attempt to load NightyModule via InsertService
  7. Attempt to load BackupModule via require()
  8. Attempt to load BackupModule via AssetService
  9. Attempt to load BackupModule via InsertService

This more than doubles the amount of methods used to load Adonis from 4 methods previously.
The code should be probably replaced with a fully modular boot sequence, but this is fine for now. I'll do that when I'll have the time for it

@ccuser44
Copy link
Contributor Author

@Dimenpsyonal
PoF:
loaderpof

@Dimenpsyonal
Copy link
Member

holy log spam batman

@Dimenpsyonal Dimenpsyonal added the 🖇️ loader The Adonis Loader and loader settings label Dec 8, 2025
@GalacticInspired
Copy link
Member

All of these APIs use a different API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🖇️ loader The Adonis Loader and loader settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants