zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+
Other
1.97k stars 60 forks source link

ESM support (type=module + exports={}) #201

Open damianobarbati opened 4 years ago

damianobarbati commented 4 years ago

Would you consider adding support for ESM? https://nodejs.org/api/esm.html#esm_main_entry_point_export Node v13 already has ESM enabled by default, and node v14 will be here in a couple of weeks.

An opt-in solution could be given in the following way (I guess, not tested):

fatfisz commented 4 years ago

Ok, I'll try to implement that; or would you be willing to provide a PR?

Hexagon commented 1 year ago

This is fixed in the fork proper-tags at https://github.com/hexagon/proper-tags published to npmjs.com/package/proper-tags and deno.land/x/proper_tags