Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support main.js as entrypoint like index.js #897

Open
tjconcept opened this issue Oct 22, 2024 · 2 comments
Open

Support main.js as entrypoint like index.js #897

tjconcept opened this issue Oct 22, 2024 · 2 comments

Comments

@tjconcept
Copy link

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?

@ije
Copy link
Member

ije commented Oct 23, 2024

you can point the entry with main.js in the package.json

{
  "main": "main.js",
   // or
  "module": "main.mjs"
}

@tjconcept
Copy link
Author

Sure, but.. what if I don't have a package.json (or similar) file? 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants