Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
This PR adds rollup-plugin-visualizer to the test-treeshake script. When running the script, this message will appear:
After opening the file in a browser, you will be able to explore the analysis of the visualizer on the tree-shaken bundle.
⚠️NOTE: It's important to notice that filesizes don't correspond to the actual output filesizes, but rather to the size of the source files. The plugin works on source files, for this reason as well it was necessary to import three.js from the source. The proportions are correct though, and only files not tree-shaken are present.
Ray is used by Mesh.raycast(), Triangle is used by checkBufferGeometryIntersection() which is called in Mesh.raycast().
You can understand this by searching in the treeshake/index.bundle.js file 🙂
Prototype properties like Ray.prototype.isIntersectionBox don't hold the class from being tree-shaken, function calls like Object.defineProperties() do, but we removed most of those.
Ray.prototype.isIntersectionBox is there just because Ray is there, see this barebones example.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.
Related issue: #19986 (comment)
Description
This PR adds rollup-plugin-visualizer to the
test-treeshakescript. When running the script, this message will appear:After opening the file in a browser, you will be able to explore the analysis of the visualizer on the tree-shaken bundle.