If you're publishing ES Modules, you need to also publish CommonJS versions of those modules.
This isn't to support old browsers or Node versions: even in Node 14, using
require() to load a module won't work if it's only available as ESM.
cjyes is the bare minimum fix for this problem. You write ES Modules and fill out a valid
package.json, and it'll generate the corresponding CommonJS files pretty much instantly.
cjyes takes up 500kb of disk space including its two dependencies.