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

import.meta.main is false when using bun . instead of bun index.ts #10831

Open
TomasHubelbauer opened this issue May 4, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@TomasHubelbauer
Copy link

What version of Bun is running?

1.1.7+b0b7db5c0

What platform is your computer?

Darwin 23.4.0 arm64 arm

What steps can reproduce the bug?

index.ts:

console.log(import.meta.main);

What is the expected behavior?

  • bun . prints true
  • bun index.ts prints true

What do you see instead?

  • bun . prints false
  • bun index.ts prints true

Additional information

No response

@TomasHubelbauer TomasHubelbauer added the bug Something isn't working label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants