Skip to content

Commit

Permalink
Merge pull request #5374 from nebulab/rainerd/fix-import-paths-in-sol…
Browse files Browse the repository at this point in the history
…idus-admin-controllers-index-js

Fix module resolution Issue with precompiled assets
  • Loading branch information
elia authored Sep 7, 2023
2 parents 335cfad + 3753f9a commit 2077dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/app/javascript/solidus_admin/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Import and register all your controllers from the importmap under controllers/*

import { application } from "./application"
import { application } from "solidus_admin/controllers/application"

// Eager load all controllers defined in the import map under controllers/**/*_controller
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
Expand All @@ -10,5 +10,5 @@ eagerLoadControllersFrom("solidus_admin/controllers", application)
// import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
// lazyLoadControllersFrom("controllers", application)

import { eagerLoadComponents } from "./components"
import { eagerLoadComponents } from "solidus_admin/controllers/components"
eagerLoadComponents(application, { under: "solidus_admin", suffix: "/component" })

0 comments on commit 2077dde

Please sign in to comment.