{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["rubygems","www"],"comment":"Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling","compare":null,"dependentCount":null,"description":"Import maps let you import JavaScript modules using logical names that map to\nversioned/digested files -- directly from the browser. So you can build modern\nJavaScript applications using JavaScript libraries made for ESM without the need\nfor transpiling or bundling.This frees you from needing Webpack, Yarn, npm, or\nany other part of the JavaScript toolchain. All you need is the asset pipeline\nthat's already included in Rails.\n\nWith this approach you'll ship many small JavaScript files instead of one big\nJavaScript file. Thanks to HTTP/2 that no longer carries a material performance\npenalty during the initial transport, and in fact offers substantial benefits\nover the long run due to better caching dynamics. Whereas before any change to\nany JavaScript file included in your big bundle would invalidate the cache for\nthe the whole bundle, now only the cache for that single file is invalidated.\n\nThere's native support for import maps in Chrome/Edge 89+, and a shim available\nfor any browser with basic ESM support. So your app will be able to work with\nall the evergreen browsers.","flavors":[],"html":"https://daemonports.org/dragonfly/www/rubygem-importmap-rails-rails71/","kind":"port","lastUpdate":null,"license":["MIT"],"maintainer":"sunpoet@FreeBSD.org","name":"rubygem-importmap-rails-rails71","newest":false,"newestVersion":"2.2.3","noVulnData":false,"origin":"www/rubygem-importmap-rails-rails71","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"www/rubygem-importmap-rails-rails71","path":"/www/rubygem-importmap-rails-rails71/","system":"FreeBSD","version":"2.2.3"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"www/rubygem-importmap-rails-rails71","path":"","system":"HardenedBSD","version":"2.2.3"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"www/rubygem-importmap-rails-rails71","path":"","system":"GhostBSD","version":"2.2.3"}],"packages":null,"pkgName":"rubygem-importmap-rails-rails71-2.1.0","related":["www/rubygem-importmap-rails","www/rubygem-importmap-rails-rails70","www/rubygem-importmap-rails-rails72"],"repository":"DPorts","requiredBy":["www/rubygem-rails71"],"requiredByCount":1,"runDepends":["devel/ruby-gems","devel/rubygem-activesupport71","lang/ruby32","www/rubygem-actionpack71","www/rubygem-railties71"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"2.1.0","versions":null,"vulnerabilities":null,"www":"https://github.com/rails/importmap-rails"}
