stimulus_reflex icon indicating copy to clipboard operation
stimulus_reflex copied to clipboard

Installer finds false positive controller import in esbuild setup

Open julianrubisch opened this issue 3 years ago • 0 comments

Just found out that this line:

https://github.com/stimulusreflex/stimulus_reflex/blob/165c2fae77b164e2f82306f4c692f97040b9c7fd/lib/tasks/stimulus_reflex/install.rake#L41

fails in a new jsbundling-esbuild setup because the following is typically present:

import controllers from './**/*_controller.js'
controllers.forEach(controller => {
  application.register(controller.name, controller.module.default)
})

thought I'd make a quick note of it.

julianrubisch avatar May 05 '22 12:05 julianrubisch