dhershman1 / phone-fns

A small modern, and functional phone number library
https://phone-fns.dusty.codes/
MIT License
15 stars 1 forks source link

Build issue with Webpack #1

Closed dhershman1 closed 6 years ago

dhershman1 commented 6 years ago

Seems like when you import the module on an app thats being built out by webpack the module returns an undefined.

So

import phoneFns from 'phone-fns';

console.log(phoneFns); // => is undefined

However doing this

import format from 'phone-fns/format';

console.log(format); // => returns the function

Will be digging into this for a v0.3.1 patch.

dhershman1 commented 6 years ago

Fixed with release of v0.3.1

dhershman1 commented 6 years ago

Doesn't look like the patch worked as intended because I am a dumb.