Hey,
I'm intereted in know how to define correctly each bundle at package.json.
For example, I know cjs bundle is the property main.
What happens with the rest? Could be a great resource to put into the readme 🙂
Definitely worth adding to the readme, yup.
"main": "dist/foo.js", // CJS bundle
"umd:main": "dist/foo.umd.js", // UMD bundle
"module": "dist/foo.m.js", // ES Modules bundle
"source": "src/foo.js", // custom entry module (same as 1st arg to microbundle)
Thank you for this.
I'm wondering where the umd:main property comes from?
Which bundlers use it? A search didn't get me far… And what about the browser field?
Seems it is a specification from microbuldle and not offical? https://github.com/stereobooster/package.json#microbundle
Already on docs 👌
Most helpful comment
Seems it is a specification from microbuldle and not offical? https://github.com/stereobooster/package.json#microbundle