-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Loaders: Replace JSZip and gunzip with fflate. #20959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly correct, and the demos that I tested do seem to work.
Okay, I've cleaned up the usage of fflate in |
This is awesome. You guys are the best! 🤗 |
Thanks! ✨ |
@@ -13,6 +13,7 @@ const assets = [ | |||
'../examples/jsm/controls/TransformControls.js', | |||
|
|||
'../examples/jsm/libs/chevrotain.module.min.js', | |||
'../examples/jsm/libs/fflate.module.min.js', | |||
'../examples/jsm/libs/inflate.module.min.js', | |||
'../examples/jsm/libs/jszip.module.min.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need inflate
and jszip
there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I just saw #20941 (comment)
Related issue: Fixed #20941.
Description
This PR replaces the loader dependencies JSZip and gunzip with fflate.
To completely remove JSZip, it would be necessary to refactor some code in the editor (although I don't think this task is that urgent and can be done later).
It was also necessary to slightly enhance
modularize.js
so it's possible to convert the usage of fflate from js -> jsm.