Skip to content

feat: add support for --preload/--import flag #29626

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jun 5, 2025

This commit adds initial support for --preload (aliased to --import)
flag that allows to load and execute multiple ES modules before the
entry point modules is executed.

Closes #29776

@bartlomieju bartlomieju added this to the 2.4.0 milestone Jun 5, 2025
@dsherret dsherret changed the title feat: Add support for --preload/--import flag feat: add support for --preload/--import flag Jun 6, 2025
Copy link

@c43721 c43721 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a little guy!

.value_name("FILE")
.use_value_delimiter(true)
.action(ArgAction::Append)
.help("A lidt of files that will be executed before the main module")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.help("A lidt of files that will be executed before the main module")
.help("A list of files that will be executed before the main module")

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

Successfully merging this pull request may close these issues.

--preload scripts
3 participants