Skip to content

Conversation

@CodyJasonBennett
Copy link
Contributor

@CodyJasonBennett CodyJasonBennett commented Oct 7, 2023

Related issue: #24595

Description

Tries to pick up after #23368 which was closed due to lack of tree-shaking which we've found unnecessary with #26912.

@CodyJasonBennett CodyJasonBennett marked this pull request as draft October 7, 2023 01:56
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
652.2 kB (161.6 kB) 652.2 kB (161.6 kB) +0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
444.9 kB (107.6 kB) 444.9 kB (107.6 kB) +0 B

@CodyJasonBennett CodyJasonBennett changed the title Add three/addons target Add three/addons target for NPM Oct 8, 2023
@CodyJasonBennett CodyJasonBennett changed the title Add three/addons target for NPM Add three/addons target for NPM. Oct 8, 2023
@CodyJasonBennett CodyJasonBennett marked this pull request as ready for review October 8, 2023 13:13
@bhouston
Copy link
Contributor

Amazing work! @CodyJasonBennett !

@marcofugaro
Copy link
Contributor

Alright, this PR looks good to me 👍 ready to be merged @mrdoob @Mugen87

After further testing, we found out that this PR is already tree-shakeable by iteself and doesn't need the changes from #26912.

@Mugen87 Mugen87 added this to the r158 milestone Oct 16, 2023
@Mugen87 Mugen87 merged commit de4d261 into mrdoob:dev Oct 17, 2023
@CodyJasonBennett CodyJasonBennett deleted the npm/addons-target branch October 17, 2023 18:21
@CodyJasonBennett
Copy link
Contributor Author

Thanks to @marcofugaro for the sanity check and for championing this as much as me.

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.

5 participants