shlogg · Early preview
Jetthoughts Dev @jetthoughts

Streamline Web Development With Bun And Vite Ruby Integration

Bun & Vite integration boosts web dev workflow with 1-2 min asset processing time reduction, crucial for Continuous Delivery teams.

With the recent release of Bun and its newfound support for Vite, coupled with Ruby on Rails 7.1 incorporating native support for Bun, developers can now enhance their web development workflow significantly. Here is the effortless process of enabling Bun for Vite Ruby, ultimately streamlining your front-end builds.


  
  
  Getting Started: Creating a Shim Bin

To kick things off, you need to create a shim bin. Navigate to the bin/shims directory and add a file named vite with the following content:

#!/usr/bin/env bash
set -eo pipefail
bunx vite "$@"

    
    

    
    




  
  
  Configu...