jsbundling-rails VS importmap-rails

Compare jsbundling-rails vs importmap-rails and see what are their differences.

jsbundling-rails

Bundle and transpile JavaScript in Rails with esbuild, rollup.js, bun, or Webpack. (by rails)

importmap-rails

Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling. (by rails)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
jsbundling-rails importmap-rails
39 30
921 1,161
0.4% 1.0%
5.9 7.4
7 days ago 5 months ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

jsbundling-rails

Posts with mentions or reviews of jsbundling-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-05.

importmap-rails

Posts with mentions or reviews of importmap-rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-08-06.
  • Importmap or jsbundling? I use both
    1 project | dev.to | 12 Oct 2024
    This is because the @lit/reactive-element package has many optional modules that were not downloaded. But if you download all optional modules, the importmap configuration will become very bloated. There is a PR in progress (#235), but it's hard to say if it will solve the problem because the issue lies in the library authors not considering the need for unbundled imports.
  • Buh-Bye Webpack and Node.js, Hello Rails and Import Maps
    3 projects | dev.to | 6 Aug 2024
    At a high level, the importmaps-rails Gem allows developers to import maps into their applications. The use of /bin/importmap allows engineers to update, pin, or unpin dependencies as needed. This is similar to how Maven and Gradle work in Java-based projects.
  • Polyfill supply chain attack hits 100K+ sites
    7 projects | news.ycombinator.com | 25 Jun 2024
    Before ESM I wasn't nearly as sold on skipping the build step, but now it feels like there's a much nicer browser native way of handling dependencies, if only I can get the files in the right shape!

    The Rails community are leaning into this heavily now: https://github.com/rails/importmap-rails

  • Do you know how the delivery of assets works in your Rails 7 app?
    1 project | dev.to | 23 Jun 2024
    // Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails import "@hotwired/turbo-rails" import "controllers" import "bootstrap" import "@popperjs/core"
  • The Rails asset pipeline, old and new
    2 projects | dev.to | 28 Apr 2024
    It is implemented as a thor task in lib/importmap/cmmands.rb
  • RubyJS-Vite
    11 projects | news.ycombinator.com | 15 Apr 2024
    With importmaps (https://github.com/rails/importmap-rails) and Hotwire (https://hotwired.dev/), you write plain js and serve it.

    Also packages are served via CDN. There is no tree shaking. Rails got rid of the whole bundling step.

  • First commits in a Ruby on Rails app
    6 projects | dev.to | 17 Jan 2024
    Importmap audit - “checks the NPM registry for known security issues”
  • Asset compilation taking ~ 12 mins
    2 projects | /r/rails | 6 Jul 2023
    It worked, but JS changes were not coming through. Digging into the Importmap docs (see 'sweeping the cache', it monitors changes according to the setting config.importmap.cache_sweepers. So, by adding the locations where I have my JS files, I also got JS changes passed through.
  • Is the default importmap method unrealistic in the most popular real world use cases?
    5 projects | /r/rails | 9 May 2023
    You can't use TypeScript, or anything that requires pre-compile, with importmap. answered issue
  • Ruby on Rails with React on Typescript using importmaps
    3 projects | dev.to | 1 May 2023
    Let's begin by installing the necessary dependencies. The first gem generates the importmap object, manages caching, and helps with library installations, among other things. I recommend reading the entire readme to become familiar with its capabilities. The second gem will be discussed later, it is used to compile JSX files. Gemfile

What are some alternatives?

When comparing jsbundling-rails and importmap-rails you can also consider the following projects:

vite_ruby - ⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience

esbuild-rails - Esbuild Rails plugin

Webpacker - Use Webpack to manage app-like JavaScript modules in Rails

import-maps - Former home of import maps (now merged into HTML)

cssbundling-rails - Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.

sprockets-rails - Sprockets Rails integration

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

Did you know that Ruby is
the 12th most popular programming language
based on number of references?