Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 3.04 KB

0008-migrate-to-vite.md

File metadata and controls

67 lines (50 loc) · 3.04 KB

0008. Migrate to Vite

Date: 2024-04-24 Status: Accepted

Context and Problem Statement

We currently use the Vue CLI Service (which uses Webpack under the hood) for our client code dev server and production bundling. However, we're running up against limitations in this setup:

  1. Vue CLI is in maintenance mode
  2. A Vue 3 migration will likely go a bit smoother if we've first migrated to Vite
  3. A number of developer experience features are more difficult to achieve in our current setup

Considered Options

  • Status quo: Remain on Vue CLI
  • Migrate to Vite
  • Migrate to another build tool (Webpack sans Vue CLI, WMR, @web/dev-server, snowpack, etc.)
    • These are not compelling options, so are not fully explored here

Decision Outcome

Chosen option: Migrate to Vite.

The migration effort is manageable, and the benefits of a well-maintained tool and improved dev experience make the switch worthwhile.

Positive Consequences

  • Vite is well-maintained (vs. Vue CLI in maintenance mode)
  • Developer experience is improved
  • Vue 3 and TypeScript migrations are eased

Negative Consequences

  • Moderate migration effort (estimated ~1 week of part-time volunteer eng)
  • Introduction of issues (any infra migration has the potential to introduce bugs)

Code Examples

A proof of concept PR whose description lays out more of the step-by-step migration path is available for review.

Links

Background reading and comparisons