RobinHerbots / inputmask.phone

Phone alias for Inputmask
MIT License
6 stars 9 forks source link

index.js contains incorrect import #2

Closed slavafomin closed 6 years ago

slavafomin commented 6 years ago

Hello!

Thank you for this library!

But, the index.js file, provided by the 1.0.3 version of he package contains an incorrect import statement.

It is:

module.exports = require("./dist/inputmask/inputmask.phone.extensions");

However, it should be:

module.exports = require("./dist/inputmask.phone/inputmask.phone.extensions.js");

The workaround is to import the target module directly:

import 'inputmask.phone/dist/inputmask.phone/inputmask.phone.extensions';

RobinHerbots commented 6 years ago

@slavafomin ,

Thx for the feedback. I pushed a new version with the fix.