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

Apply lazy resolution for engine's package.json #503

Merged
merged 3 commits into from
Feb 18, 2023

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Feb 18, 2023

Updated ResolvedEngine class, to find the nearest package.json of the resolved engine only when needed.

Currently package field is only used when using --version option, so this change will make faster to resolve and use the engine.

In addition, it might be helpful to resolve a problem marp-team/marp-vscode#402 in the regular usage brought by scanning modules from require.cache.

@yhatt yhatt changed the title Lazy resolution for engine's package Apply lazy resolution for engine's package.json Feb 18, 2023
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