esm.sh
esm.sh copied to clipboard
Support main.js as entrypoint like index.js
I'm wondering if it would make sense to support main.js as an entrypoint like index.js is.
However, I'm actually more curious what the current logic is. Why is index.js supported?
you can point the entry with main.js in the package.json
{
"main": "main.js",
// or
"module": "main.mjs"
}
Sure, but.. what if I don't have a package.json (or similar) file? 😅