Skip to content

Use the VM loader for loading plugin modules as well resource modules#209

Merged
kriszyp merged 9 commits intomainfrom
vm-load-plugins
Mar 12, 2026
Merged

Use the VM loader for loading plugin modules as well resource modules#209
kriszyp merged 9 commits intomainfrom
vm-load-plugins

Conversation

@kriszyp
Copy link
Member

@kriszyp kriszyp commented Mar 11, 2026

This creates an application scope that uses the VM loading and is used to load plugins within that application as well as resource modules.

@kriszyp kriszyp changed the title Create an ApplicationScope that holds the top level context for the a… Use the VM loader for loading plugin modules as well resource modules Mar 11, 2026
@kriszyp kriszyp marked this pull request as ready for review March 11, 2026 02:50
@kriszyp kriszyp requested a review from a team as a code owner March 11, 2026 02:50
kriszyp and others added 2 commits March 11, 2026 07:04
Co-authored-by: Chris Barber <chris@harperdb.io>
@kriszyp kriszyp mentioned this pull request Mar 11, 2026
);
} else if (usePrivateGlobal && url.startsWith('file://')) {
checkAllowedModulePath(url, scope.applicationContainment.verifyPath);
checkAllowedModulePath(url, scope.verifyPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

What if verifyPath is undefined? checkAllowedModulePath() expects containingFolder to be defined, so maybe it's easiest to let checkAllowedModulePath() accept an undefined containingFolder and throw a meaningful message?

Copy link
Member

@Ethan-Arrowood Ethan-Arrowood left a comment

Choose a reason for hiding this comment

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

i'm happy with it!

@kriszyp kriszyp merged commit d6dbbe3 into main Mar 12, 2026
10 of 11 checks passed
@kriszyp kriszyp deleted the vm-load-plugins branch March 12, 2026 15:45
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.

4 participants