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

Manual: Improve compatibility with import maps. #23370

Closed
wants to merge 2 commits into from

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jan 28, 2022

Fixed #23363.

Description

This PR fixes the examples of the manual. They should work standalone and in the editor view again.

The script export to sites like jsfiddle is not yet fixed. I've hidden the export button until this feature works again.

@greggman Your pointers were really helpful! I've tried to make the changes to editor.js and editor-settings.js as simple as possible. There are surely more smart solutions but at least the examples should work again.

@greggman
Copy link
Contributor

If that works that's great!

I tried to make a more generic change here (ie, not hardcoding 'three'):

https://github.com/greggman/three.js/tree/fix-live-editor-for-r137

@greggman
Copy link
Contributor

It will be more work to make it export. (I guess skydev no longer works with r137? ... not sure)

@mrdoob mrdoob added this to the r137 milestone Jan 28, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jan 28, 2022

Cherry-picked in master.

@mrdoob mrdoob closed this Jan 28, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jan 28, 2022

Thanks!

@mrdoob
Copy link
Owner

mrdoob commented Jan 28, 2022

Looks like @ycw is looking into it too:
https://github.com/ycw/three.js/commits/manual-fix

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.

examples/jsm files import change broke https://threejs.org hot-linking and code samples in the manual
3 participants