1.3 and JQuery plugins

In 1.2.1 I had (for example) jquery.inputmask.bundle.js sitting in client/lib.
It gave me a global Inputmask variable and worked great.
This object allows customization of the mask behavior.
1.3 didn’t like this .js and told me to npm install it along with jquery.
fine.
In the client where I use it I now have

const Inputmask = require(‘jquery.inputmask’);

This is NOT the Inputmask I use to have, but an internal function from the plugin.

How do I get the behaviour I had pre 1.3