How to load old-fashioned JS (no imports) into my webpack bundle?

This comment helped me add a separate entry in Webpack and load the file in the app this way but I still can’t use the functions from the dev console.