Package: wnpp
Severity: wishlist
Owner: Simon Quigley <[email protected]>
X-Debbugs-Cc: [email protected], [email protected]

* Package name: ruby-importmap-rails
    Version: 2.2.3
    Upstream Author: David Heinemeier Hansson <[email protected]>
* URL: https://github.com/viewcomponent/view_component
* License: MIT
    Programming Lang: Ruby
    Description: manage modern JavaScript in Rails

Import maps let you import JavaScript modules using logical names that map to 
versioned/digested files – directly from the browser. So you can build modern 
JavaScript applications using JavaScript libraries made for ES modules (ESM) 
without the need for transpiling or bundling. This frees you from needing 
Webpack, Yarn, npm, or any other part of the JavaScript toolchain. All you need 
is the asset pipeline that's already included in Rails. With this approach 
you'll ship many small JavaScript files instead of one big JavaScript file. 
Thanks to HTTP/2 that no longer carries a material performance penalty during 
the initial transport, and in fact offers substantial benefits over the long 
run due to better caching dynamics. Whereas before any change to any JavaScript 
file included in your big bundle would invalidate the cache for the whole 
bundle, now only the cache for that single file is invalidated. Import maps are 
supported natively in all major, modern browsers. If you need to work with 
legacy browsers without native support, you can explore using the shim 
available.

I intend on maintaining this under the Debian Ruby umbrella.

Thanks,
Simon Quigley
[email protected]

Reply via email to