idiomorph
idiomorph copied to clipboard
Please publish new version with the module entry in package.json
The currently published version 0.3.0 omits the module entry in package.json that was added recently. Thank you kindly.
Also, it would be nice to export Idiomorph instead of {Idiomorph}.
That is: https://github.com/bigskysoftware/idiomorph/blob/main/package.json#L25 should read
"esm" : "(cat src/idiomorph.js && echo \"\nexport Idiomorph;\") > dist/idiomorph.esm.js",
That way, the ESM usage would be:
import {default, morph} from 'idiomorph'
export Idiomorph;
errors when I test it.
To make this work I had to change the export to:
export const {defaults, morph} = Idiomorph;
released 0.4.0 today