Floby / node-url-assembler

Assemble urls from route-like templates (/path/:param)
39 stars 10 forks source link

Offer an ECMA Module version #17

Open leonard84 opened 4 years ago

leonard84 commented 4 years ago

I'm using url-assembler in an Angular app, and Angular complains about using a commonJS module. Would it be possible to convert this to an ECMA Module, or offer a ECMA Module version? The ECMA version could then be the source of a converted commonJS version if that format is still necessary.

See also https://web.dev/commonjs-larger-bundles/ https://angular.io/guide/build#configuring-commonjs-dependencies

Floby commented 3 years ago

I'm happy to accept a Merge Request for this functionnality =)