BSD Ports

www/rubygem-importmap-rails-rails80 2.2.3 DragonFly

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

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
rubygems, www
Package size
18.0 KiB, 56.3 KiB installed

Description

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 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.

There's native support for import maps in Chrome/Edge 89+, and a shim available for any browser with basic ESM support. So your app will be able to work with all the evergreen browsers.

In the other systems

The newest version among them is 2.2.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlywww/rubygem-importmap-rails-rails802.2.3 newestnone known-[email protected]-
FreeBSDwww/rubygem-importmap-rails-rails802.2.3 newestnone known-[email protected]-
HardenedBSDwww/rubygem-importmap-rails-rails802.2.3 newestno data-[email protected]-
GhostBSDwww/rubygem-importmap-rails-rails802.2.3 newestno data-[email protected]-

Version history 1

  1. 2.2.3

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install rubygem-importmap-rails-rails80

From DPorts:

cd /usr/dports/www/rubygem-importmap-rails-rails80 && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 5
Required by 1