I'm a Rubyist and unashamedly rather lazy; so having that import statement at the top of every Stimulus controller always irked me. If you're using Webpack, there's a super simple way of circumventing this annoying import statement.
First thing you need to do is create a file called application_controller.js and place it in your controllers directory. This is good practice nevertheless as you can put app specific utilities in there; such as getting some data out of meta tags for example.
And finally we need to make a change to our Webpack configuration so the controllers know where to find ApplicationController without the import statement. We'll use the Webpack Provide plugin to accomplish this.
Add the following lines to the plugins array in your webpack.config.js: