Replies: 1 comment 2 replies
-
I had plans to add lazy loading for commands but haven't had time to do it yet. Something like this: new Command()
.command("foo", () => import("./foo-command.ts").then(({fooCommand)}) => fooCommand) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, thanks you for the good software before anything.
Som I'm writing this app and some sections of the CLI are dynamically generated from configuration. The configuration is in typescript and thus it's required to go through a worker to get to it. I have caching in place to avoid this expensive call but I'd still like to eliminate to the cost when the user access sections of the CLI that don't require this.
Is it possible to implement something like like this?
Beta Was this translation helpful? Give feedback.
All reactions