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

chore: replace the cdn, unpkg -> jsdelivr #28006

Merged
merged 2 commits into from Mar 26, 2024
Merged

chore: replace the cdn, unpkg -> jsdelivr #28006

merged 2 commits into from Mar 26, 2024

Conversation

0b5vr
Copy link
Collaborator

@0b5vr 0b5vr commented Mar 26, 2024

Will resolve #28002

Description

I changed the CDN from unpkg to jsDelivr.

unpkg.com/ -> cdn.jsdelivr.net/npm/

I checked all changed examples, editor, manuals are working properly.

Context

unpkg is not reliable, especially when we are using NodeMaterials since there are a lot of modules to load.

See: #28002 (comment)

Notes

  • Note that I also replaced in editor-settings.js
  • I excluded editor/js/libs/ffmpeg.min.js and examples/jsm/libs/chevrotain.module.min.js
  • webgl2_ubo_arrays.html still imports es-module-shims, is this required?

`unpkg.com/` -> `cdn.jsdelivr.net/npm/`

I checked all changed examples, editor, manuals are working properly

Context: unpkg is not reliable, especially when we are using NodeMaterials since there are a lot of modules to load.

See: mrdoob#28002 (comment)

Note that I also replaced in `editor-settings.js`

I excluded `editor/js/libs/ffmpeg.min.js` and `examples/jsm/libs/chevrotain.module.min.js`

`webgl2_ubo_arrays.html` still imports es-module-shims, is this required?
@0b5vr
Copy link
Collaborator Author

0b5vr commented Mar 26, 2024

Let me know if I still have something to change.

@Mugen87
Copy link
Collaborator

Mugen87 commented Mar 26, 2024

Do you mind removing the build files from the PR?

webgl2_ubo_arrays.html still imports es-module-shims, is this required?

No, the shim can be removed 👍 .

@0b5vr
Copy link
Collaborator Author

0b5vr commented Mar 26, 2024

Do you mind removing the build files from the PR?

ouch, thank you. I just removed.

@0b5vr
Copy link
Collaborator Author

0b5vr commented Mar 26, 2024

webgl2_ubo_arrays.html still imports es-module-shims, is this required?

No, the shim can be removed 👍 .

addressed @ b12dd2f

@Mugen87 Mugen87 added this to the r163 milestone Mar 26, 2024
@Mugen87 Mugen87 merged commit 447d344 into mrdoob:dev Mar 26, 2024
11 checks passed
@0b5vr 0b5vr deleted the jsdelivr branch March 27, 2024 04:29
0b5vr added a commit to pixiv/three-vrm that referenced this pull request Mar 27, 2024
Also update README to recommend jsDelivr

Following the Three.js side change.
See: mrdoob/three.js#28006

es-module-shims for import map is also no longer used in Three.js examples.
See: mrdoob/three.js#26836
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.

unpkg is slow when we're using NodeMaterials
2 participants