Skip to content

Refactoring Build and Development Chain #94

@ghost

Description

Refactoring The Build and Development Chain

Currently the project uses rollup for build and jest for testing. EsLint and Prettier is also installed but not properly configured.

My Suggestion is to replace rollup with esbuild and jest with vitest and properly setup EsLint and Prettier to enforce same code style for everyone.

Reasons to consider esbuild over rollup

  • esbuild is faster and more efficient than rollup
  • It can do everything that rollup is currently doing, without any extra dependency or plugin

Reasons to consider vitest over jest

  • vitest provides same API as jest, so nothing needs to be changed in test file
  • supports import/export syntax out of box
  • directly tests over source code, which skips painful build step before every test run
  • tests can be run in watch mode, saving much time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions