All you would have to do is prepend export default to the main file and it would me much easier to use with npm managed projects. you could name it 'q5.esm.js' or something, but I would recommend pointing the package.json main filed to this version and it would work out of the box with node.
All you would have to do is prepend
export defaultto the main file and it would me much easier to use with npm managed projects. you could name it 'q5.esm.js' or something, but I would recommend pointing thepackage.jsonmainfiled to this version and it would work out of the box with node.