Skip to content

'yarn node' memory overhead? (disable plugins?) #2641

Answered by merceyz
jrr asked this question in Q&A
Discussion options

You must be logged in to vote

Is interactive-tools known to be memory-expensive?

It can be, yes, the plugins aren't lazy loaded so the entire thing is initialized at all times

What is interactive-tools doing during normal yarn node invocations? (I would expect it to only be active when I run yarn upgrade-interactive)

It is initialized to get the commands from it before you get to the node part of yarn node

Is there a way I can conditionally disable the plugin? (I want to keep it in yarnrc.yml for development use)

In production you should be launching your app without using Yarn - https://yarnpkg.com/features/pnp/#initializing-pnp

node -r ./.pnp.js ./path/to/entrypoint.js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jrr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants