Skip to content

perf: reduce size of npm_package_store transitive_files depset#1594

Merged
gregmagolan merged 1 commit into
2.xfrom
rjs2_26
Apr 3, 2024
Merged

perf: reduce size of npm_package_store transitive_files depset#1594
gregmagolan merged 1 commit into
2.xfrom
rjs2_26

Conversation

@gregmagolan

@gregmagolan gregmagolan commented Apr 3, 2024

Copy link
Copy Markdown
Member

I've been waiting to make this optimization for a long time

BREAKING CHANGES:

If using npm packages with genrule, the default output of a target such as //:node_modules/foo is only the link directory so if you will also need to add //:node_modules/foo/dir which is the virtual store directory to the genrule srcs.

@gregmagolan gregmagolan changed the title refactor: reduce size of npm_package_store transitive_files depset perf: reduce size of npm_package_store transitive_files depset Apr 3, 2024
@gregmagolan gregmagolan requested review from alexeagle and jbedard April 3, 2024 17:22
Comment thread examples/genrule/BUILD.bazel
@gregmagolan gregmagolan merged commit 1f2c076 into 2.x Apr 3, 2024
@gregmagolan gregmagolan deleted the rjs2_26 branch April 3, 2024 20:57
Comment thread npm/private/utils.bzl
output = symlink,
target_path = relative_file(target_file.path, symlink.path),
)
files.append(target_file)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What allowed this to be dropped?

@gregmagolan gregmagolan mentioned this pull request Apr 29, 2024
21 tasks
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.

3 participants