-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Addons: Add PURE annotations for tree-shaking. #26912
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
Closed
Closed
Changes from 7 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
0255e15
Addons: initial pass for tree-shaking
CodyJasonBennett 9fe9f6b
Update MaterialXLoader.js
CodyJasonBennett d593378
Nits
CodyJasonBennett 71e5eb9
CurveModifier, XR
CodyJasonBennett 98a0bd3
Undo export changes to offscreen
CodyJasonBennett b903a8f
Addons: remove static keyword from members/methods
CodyJasonBennett 4387cde
Addons: cleanup shader chunks, math constants
CodyJasonBennett 9c3e285
ImprovedNoise: don't premultiply kernel
CodyJasonBennett c8bbc34
fflate: tree-shake as IIFE
CodyJasonBennett e5b4694
EXRExporter: mark textEncoder as pure
CodyJasonBennett 3a7b8ab
lottie_canvas: tree-shake as IIFE
CodyJasonBennett ae2e810
opentype: tree-shake as IIFE
CodyJasonBennett 3547f8c
utif: tree-shake as IIFE
CodyJasonBennett cf1bb22
upng: create and tree-shake lib
CodyJasonBennett c67d55a
chevrotain: tree-shake as IIFE
CodyJasonBennett 521a9f8
VRMLLoader: use factory method for tree-shaking
CodyJasonBennett ff8f72d
VRMLLoader: return parser instance in factory
CodyJasonBennett 4b565ae
Keep loader libs inlined
CodyJasonBennett 501ac63
CSMShader: don't self-reference with include
CodyJasonBennett f1e8ab6
CSMShader: cleanup
CodyJasonBennett 9446f88
utif: hoist namespace
CodyJasonBennett d5ce35c
OrbitControls: destructure MathUtils for tree-shaking
CodyJasonBennett 4654d8e
offscreen: revert changes
CodyJasonBennett b4f33bc
mmdparser: tree-shake with IIFE
CodyJasonBennett 2cae69b
Addons: keep static methods
CodyJasonBennett 07ae8d1
MaterialXLoader: revert changes
CodyJasonBennett f4383e0
XRButton: cleanup
CodyJasonBennett 82db00e
XRButton: fix conflicts
CodyJasonBennett 321ba48
fflate: cleanup
CodyJasonBennett 50d3b3f
Addons: minimize whitespace diff in libs
CodyJasonBennett 6df1cd4
Cleanup
CodyJasonBennett d9322d6
Cleanup static fields
CodyJasonBennett e1c95bf
VRMLLoader: cleanup
CodyJasonBennett 6dab494
IFFParser: cleanup
CodyJasonBennett 94602e1
IFFParser: cleanup
CodyJasonBennett 7f7633c
Merge branch 'dev' into addons/tree-shake
CodyJasonBennett 6d46eb4
Addons: use IIFE for static fields
CodyJasonBennett e4fa50b
Addons: flatten whitespace in IIFEs
CodyJasonBennett 7e3bc69
Addons: cleanup
CodyJasonBennett 4af3121
Merge branch 'dev' into addons/tree-shake
CodyJasonBennett b9d5666
VRMLLoader: refactor parser back to class from factory
CodyJasonBennett ab42802
Addons: cleanup
CodyJasonBennett 962b57c
Addons: destructure use of built-in shaders and uniforms
CodyJasonBennett 5b56afd
utif: cleanup
CodyJasonBennett 187ceb0
Addons: cleanup random git formatting
CodyJasonBennett e0e172a
lottie: typo
CodyJasonBennett 17e52d1
OBB: typo
CodyJasonBennett f5882ff
Merge branch 'dev' into addons/tree-shake
CodyJasonBennett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.