Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support for module promise in
Elysia#use
The following use case was broken: Calling `app.use(import("./routes"))` where the "./routes" module has a default export that is an Elysia instance. I‘m doing `instanceof Elysia` checks on the promise result and the module‘s "default" export, so a more informative error can be thrown, where before the app would crash with some obscure TypeError with a message of "Right side of assignment cannot be destructured" within the `Elysia#_use` method.
- Loading branch information