Skip to content

Allow require to be shared across executions #1086

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

appurva21
Copy link
Member

No description provided.

@appurva21 appurva21 requested a review from codenirvana April 23, 2025 19:12
require: (...args) => {
const key = args?.[0],
const wrappedCode = `
;((originalRequire) => {
Copy link
Member Author

@appurva21 appurva21 Apr 23, 2025

Choose a reason for hiding this comment

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

This right now will keep on wrapping require with each execution, but if the general direction seems satisfactory, we can move it inside the initialize event and only do it once.

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.

1 participant