File tree Expand file tree Collapse file tree
spike/app/javascript/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Registers the packaged hibiki client (the "hibiki-rails" module: the
2+ // engine's importmap pin, or the npm package in bundler apps) as the
3+ // "hibiki" Stimulus controller — the Ruby helpers hardcode that
4+ // identifier in data-controller. File-backed on purpose: `bin/rails
5+ // stimulus:manifest:update` re-derives this exact registration from the
6+ // filename, so it survives manifest rewrites.
7+ export { default } from "hibiki-rails"
Original file line number Diff line number Diff line change 22import { application } from "controllers/application"
33import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
44eagerLoadControllersFrom ( "controllers" , application )
5-
6- // The packaged hibiki client (vendored by the hibiki_rails engine, pinned
7- // as "hibiki-rails"). The identifier must be "hibiki" — the Ruby helpers
8- // hardcode it in data-controller.
9- import HibikiController from "hibiki-rails"
10- application . register ( "hibiki" , HibikiController )
5+ // The packaged hibiki client is registered by the eager-loaded
6+ // hibiki_controller.js shim (file-backed so stimulus:manifest:update
7+ // can't drop it).
You can’t perform that action at this time.
0 commit comments