You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
584 B

11 months ago
  1. // Import and register all your controllers from the importmap under controllers/*
  2. import { application } from "controllers/application"
  3. // Eager load all controllers defined in the import map under controllers/**/*_controller
  4. import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
  5. eagerLoadControllersFrom("controllers", application)
  6. // Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
  7. // import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
  8. // lazyLoadControllersFrom("controllers", application)