Make your Vite applications run a little faster

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • vite-plugin-react

    The all-in-one Vite plugin for React projects.

    Official Vite plugins have been optimizing performance, such as vitejs/vite-plugin-react which reduces Node.js startup time by dynamically importing large dependencies.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • speedscope

    πŸ”¬ A fast, interactive web-based viewer for performance profiles.

    There are many ways to identify this performance issue, such as using vite --debug plugin-transform or vite-plugin-inspect to Alternatively, you can visit the site after running vite --profile, press p + enter in the terminal to record a .cpuprofile, and then use a tool like speedscope to examine the configuration file and identify bottlenecks.

  • vite-plugin-eslint

    🚨 ESLint plugin for vite

    As an example, vite-plugin-eslint is still recommended in many community articles, but as of today it hasn't been updated in two years, and support for newer versions of Vite and ESLint is mediocre.

  • vite-plugin-inspect

    Inspect the intermediate state of Vite plugins

    There are many ways to identify this performance issue, such as using vite --debug plugin-transform or vite-plugin-inspect to Alternatively, you can visit the site after running vite --profile, press p + enter in the terminal to record a .cpuprofile, and then use a tool like speedscope to examine the configuration file and identify bottlenecks.

  • vite-plugin-checker

    πŸ’¬ Vite plugin that provide checks of TypeScript, ESLint, vue-tsc, Stylelint and more.

    Once you've identified a performance issue, you can consider forking and improving the appropriate plugin, or just using a replacement. For the example above, you might consider replacing it with vite-plugin-checker, @nabla/vite-plugin-eslint or vite-plugin-eslint2, all of which support asynchronous ESLint checksums so as not to particularly impact performance and development experience, while still serving the purpose of ESLint checksums.

  • swc

    Rust-based platform for the Web

    Using a more raw toolchain is also a good way to speed things up; the SWC website shows it to be 20 to 70 times faster than Babel, and there are tons of speed advantages in complex real-world applications, which proves that rawness can be a big help in speeding things up. Instead of vite-plugin-react, you can use @vitejs/plugin-react-swc, with LightningCSS instead of PostCSS, SWC or esbuild instead of Babel, etc. etc. to achieve better performance.

  • vite-plugin-eslint2

    🚨 ESLint plugin for Vite.

    Once you've identified a performance issue, you can consider forking and improving the appropriate plugin, or just using a replacement. For the example above, you might consider replacing it with vite-plugin-checker, @nabla/vite-plugin-eslint or vite-plugin-eslint2, all of which support asynchronous ESLint checksums so as not to particularly impact performance and development experience, while still serving the purpose of ESLint checksums.

  • vite-plugin-react-swc

    Speed up your Vite dev server with SWC

    Using a more raw toolchain is also a good way to speed things up; the SWC website shows it to be 20 to 70 times faster than Babel, and there are tons of speed advantages in complex real-world applications, which proves that rawness can be a big help in speeding things up. Instead of vite-plugin-react, you can use @vitejs/plugin-react-swc, with LightningCSS instead of PostCSS, SWC or esbuild instead of Babel, etc. etc. to achieve better performance.

  • vite-plugin-warmup

    Warm up Vite's transform cache

    For 4.3 <= Vite < 5, vite-plugin-warmup is required, there is no support for lower versions.

  • esbuild

    An extremely fast bundler for the web

    Using a more raw toolchain is also a good way to speed things up; the SWC website shows it to be 20 to 70 times faster than Babel, and there are tons of speed advantages in complex real-world applications, which proves that rawness can be a big help in speeding things up. Instead of vite-plugin-react, you can use @vitejs/plugin-react-swc, with LightningCSS instead of PostCSS, SWC or esbuild instead of Babel, etc. etc. to achieve better performance.

  • eslint-plugin-import

    ESLint plugin with rules that help validate proper imports.

    If you want to use ESLint to force explicit import paths, you can configure import/extensions or import-x/extensions rule, as shown below.

  • eslint-plugin-import-x

    `eslint-plugin-import-x` is a fork of `eslint-plugin-import` that aims to provide a more performant and more lightweight version of the original plugin.

    If you want to use ESLint to force explicit import paths, you can configure import/extensions or import-x/extensions rule, as shown below.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Accelerate your delivery with modern tools

    3 projects | dev.to | 27 Dec 2022
  • Must-see + collection, build a vite-react-cil enterprise scaffolding from scratch

    8 projects | dev.to | 9 Oct 2021
  • εœζ»žδΈε‰ - FAV0ε‘¨εˆŠ#023

    12 projects | dev.to | 1 Dec 2024
  • Side Projects Starter Pack

    5 projects | dev.to | 29 Nov 2024
  • Using PostHog in Remix Loaders and Actions on Cloudflare Pages

    1 project | dev.to | 27 Nov 2024

Did you konow that TypeScript is
the 2nd most popular programming language
based on number of metions?