-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Feature request]: AfterDependenciesInstalled hook #5709
Comments
What about just manually specifying a negation in the
The Documentation site says that all prod dependencies are automatically included because |
@mmaietta I don't really understand how this should work. Let's say I have a Vue depends on
I can exclude Vue from the package, as you described, but all other dependencies will remain in the package
(nothing) -> |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Yeap |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Ага |
Please consider opening a PR to contribute |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I need a method that would allow me to control exactly which dependencies come in the distributable package and which should be excluded.
For this I propose to hang a
afterDependenciesInstalled
hook that will fire immediately after the dependencies installed.Use case:
Using bundles, such as rollup or Vite, some runtime dependencies are optimized and bundled into source code. This means that there is no need to keep these optimized dependencies in node_modules.
With
afterDependenciesInstalled
hook, we could remove dependencies that have already been optimized and bundled.The text was updated successfully, but these errors were encountered: