panzerdp / voca

The ultimate JavaScript string library
https://vocajs.pages.dev
MIT License
3.6k stars 137 forks source link

Individual function cannot be imported with ESM imports #38

Open lpellegr opened 5 years ago

lpellegr commented 5 years ago

Expected behavior :smile_cat:

Individual functions import with ECMAScript modules work in browsers.

Actual behavior :crying_cat_face:

Global import using default export for voca is working:

import voca from 'voca';

However, individual function imports with ESM modules is not working:

Uncaught SyntaxError: The requested module '../node_modules/voca/starts_with.js' does not provide an export named 'default'

Steps to reproduce :construction_worker:

import startsWith from 'voca/starts_with';

Technical details: :wrench:

Browser/OS type: Chrome 67 VocaJS version: 1.4.0

panzerdp commented 5 years ago

Thanks for reporting it. I will take a look when I have a bit more time available.

lpellegr commented 5 years ago

@panzerdp Any updates?

ronmmn commented 5 years ago

can you please explain how to add and start using your wonderful package in AURELIA ? where and which configurations should i do. thx