David Kimura PRO said over 4 years ago on Polling with StimulusJS :
That's fine as it would be used for nonstimulus scripts. i mean more of having something like this

window.Rails = require("rails-ujs")