Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
oven-sh
/
bun
Public
Notifications
You must be signed in to change notification settings
Fork
5.1k
Star
96.1k
Code
Issues
3.8k
Pull requests
5k+
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Initialize an ES module's require, __dirname and __filename when the module is linked
- #42752
#42752
Open
robobun
wants to merge 6 commits into
main
oven-sh/bun:main
from
robobun/c89ea023/esm-require-before-module-body
oven-sh/bun:robobun/c89ea023/esm-require-before-module-body
Copy head branch name to clipboard
Conversation
Commits
6
(6)
Checks
Files changed
Open
Initialize an ES module's require, __dirname and __filename when the module is linked
#42752
robobun
wants to merge 6 commits into
main
oven-sh/bun:main
from
robobun/c89ea023/esm-require-before-module-body
oven-sh/bun:robobun/c89ea023/esm-require-before-module-body
Copy head branch name to clipboard
Commits
Commits on Sep 14, 2026
Give require, __dirname and __filename of an ES module their values when the module is linked
Show description for cfd262d
robobun
committed
cfd262d
View commit details
Copy full SHA for cfd262d
Browse repository at this point
test: a user-written var __dirname keeps no value before the module body
Show description for ff27f08
robobun
committed
ff27f08
View commit details
Copy full SHA for ff27f08
Browse repository at this point
Shorten the comments on the hoisted module bindings
robobun
committed
517770c
View commit details
Copy full SHA for 517770c
Browse repository at this point
js_printer: make the hoisted module bindings an enum with methods
Show description for 39955bb
robobun
committed
39955bb
View commit details
Copy full SHA for 39955bb
Browse repository at this point
Commits on Sep 15, 2026
Use common strings for the hoisted binding names
Show description for 4d4e1e0
robobun
committed
4d4e1e0
View commit details
Copy full SHA for 4d4e1e0
Browse repository at this point
ci: retrigger
robobun
committed
80b9968
View commit details
Copy full SHA for 80b9968
Browse repository at this point
You can’t perform that action at this time.