Skip to content

Improve bundle size #66

Open
Open
@ghost

Description

The binary size of create-hono is currently 1.39 MB.
This is clearly larger than create-remix (93.3kB)(with dependencies) and create-vite (56.9kB) and should be improved.

These are some of the ways to improve:

  • Stop using commander.
    • arg-parser can be replaced by node:util's parseArgs.
    • usage can be replaced by console.log.
  • Use @clack/core instead of @inquirer/* and nanospinner (225kB total)
  • Self-implement giget(342kB)

I have already tried all of this locally and can make a PR right away.
I would like to hear @yusukebe, @ryuapp, and @MathurAditya724's opinions on these changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions