-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Examples: Convert loaders to ES6 Part III. #21616
Conversation
I've tested the LDrawLoader exhaustively (all models and options) and seems to be working right. |
Thanks! |
What I have meant is that there is still code in the above loaders using |
Looks okay, On the GCodeLoader we can replace all var with let without problem. |
@tentone Unfortunately that did not work in
The entire function |
This is another confusing place: three.js/examples/jsm/loaders/GCodeLoader.js Lines 202 to 211 in 8f6cc7d
Where does |
The methods should be moved into the loop. i variable comes from there, I will create a branch and open a PR too clean these up. Thanks a lot! |
@Mugen87 @marcofugaro do you guys get this when running |
I had the same error lately because of an outdated rollup version. Run |
That was it. Thanks! |
@Mugen87 starting to look at this now to fix the remaining |
Related issue: -
Description
More loader conversions.
I did not convert all loader to code to
let/const
since some code depends on the specific scoping ofvar
. Since I'm not 100% familiar with the format of the following loaders, I would like to ask other devs for help and remove the remaining usage ofvar
in3DMLoader
,EXRLoader
,GCodeLoader
,VTKLoader
andLDrawLoader
./ping @tentone, @yomboprime, @fraguada, @sciecode