Hacker GitHub

← All repos

rails/importmap-rails

View on GitHub ↗ ★ 1,164 Ruby

Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling.

7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2021-08-11 · latest 2024-06-25

Mentions per year 7 mentions · busiest year 2021 (3)
20082026
  1. …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
  2. 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.
    comment by bingemaker · 2024-04-17 · in RubyJS-Vite
  3. importmaps supported in Rails 7 https://github.com/rails/importmap-rails
  4. …(codebase is Typescript/ES6 modules) No luck for you then. Rails doesn't seem to love typescript: https://github.com/rails/importmap-rails/issues/124
  5. Links: - YouTube: https://www.youtube.com/watch?v=PtxZvFnL2i0 - Project: https://github.com/rails/importmap-rails/
  6. Looks like Rails wants off Webpacker as well https://github.com/rails/importmap-rails
  7. ▲ 3
    Importmap for Rails: Build Rails Applications Without Webpack, Yarn or NPM
    story by ksec · 2021-08-11 · 0 comments