Super late reply, but I figured out how to properly import this while using Webpack and Rails.
application.js file, instead of simply having
import 'gmaps';, do the following:
import 'gmaps'; import GMaps from 'gmaps'; window.GMaps = GMaps;
This also applies for those of you (like me) who keep getting "function is not defined" errors.