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

Geometries: Split files #20394

Merged
merged 3 commits into from
Sep 22, 2020
Merged

Geometries: Split files #20394

merged 3 commits into from
Sep 22, 2020

Conversation

mrdoob
Copy link
Owner

@mrdoob mrdoob commented Sep 22, 2020

Geometry was not being tree-shaked because WebGLBackground imports geometries/BoxGeometry.js and geometries/PlaneGeometry.js in order to use BoxBufferGeometry and PlaneBufferGeometry and seems like rollup is not able to see that BoxGeometry and PlaneGeometry are actually not used.

Splitting them seemed to fix this (27KB saved), and seemed appropriate to do the same with the rest of the files.

@mrdoob mrdoob added this to the r121 milestone Sep 22, 2020
@mrdoob mrdoob merged commit c29f85c into dev Sep 22, 2020
@mrdoob mrdoob deleted the geometries branch September 22, 2020 13:38
@Mugen87
Copy link
Collaborator

Mugen87 commented Sep 22, 2020

I've added a note about this change in the migration guide. Just in case^^.

https://github.com/mrdoob/three.js/wiki/Migration-Guide#r120--r121

@mrdoob mrdoob mentioned this pull request Sep 22, 2020
43 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.

2 participants