Sha256: b5112b8d5f80510443757726f791302711b73ee4666c4c19450e35508b92cfe7
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 KB
Contents
import "@stimulus/polyfills" // required for IE11 support import { Application } from "stimulus" // Manually import stimulusjs controllers for now as we had problems with the stimulus-controllers // package on CI ('file.isDirectory is not a function') // and cannot use the webpacker-helper/require method as per usual in a rails app as we // do not use webpacker in this engine because it is a poor fit. We just want to compile all // es6 assets into a file in app/assets/javascripts so that they can be used in the asset pipeline // by a host app initially. We could publish our package to e.g. GH packages at some point in the // future so that a host app can include us using webpacker and skip the asset pipeline, but we // are a little way off that. // So the approach right now is quite simple - to allow is to use stimulus.js and IE11 // (via the polyfill) for new js development, and the remaining js can be ported or moved at some // point in the future. // The rollupjs setup from adapted from the approach used by ActiveStorage import ToggleController from "./controllers/toggle_controller" import HDPrescriptionController from "./controllers/hd/prescription_administration_controller" import MedicationsHomeDeliveryModalController from "./controllers/medications/home_delivery_modal_controller" const application = Application.start() application.register("toggle", ToggleController) application.register("hd-prescription-administration", HDPrescriptionController) application.register("home-delivery-modal", MedicationsHomeDeliveryModalController)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.0.143 | app/javascript/renalware/index.js |