Note
the orignal code (three.js) uses kripken's ammo.js
https://www.jsdelivr.com/package/npm/ammo.js
Error log
Uncaught SyntaxError SyntaxError: The requested module '/npm/ammojs-typed@1.0.6/+esm' does not provide an export named 'default'
at (program) (d:\Lab\Github\mmdPostionTest\npm\@moeru\three-mmd@0.0.5\jsdelivr-header.js:7:1)
here is source code.
/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/@moeru/three-mmd@0.0.5/dist/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
import e from "/npm/ammojs-typed@1.0.6/+esm";
import {
ShaderLib as t,
UniformsUtils as s,
Object3D as i,
Matrix4 as r,
Vector3 as n,
Quaternion as a,
MeshBasicMaterial as o,
Color as h,
Mesh as l,
AnimationMixer as c,
ShaderMaterial as m,
AddOperation as u,
MultiplyOperation as d,
TangentSpaceNormalMap as p,
Loader as g,
FileLoader as f,
CapsuleGeometry as A,
BoxGeometry as y,
SphereGeometry as x,
Euler as b,
Bone as M,
LoaderUtils as w,
SkinnedMesh as T,
Skeleton as B,
Float32BufferAttribute as C,
BufferGeometry as _,
Uint16BufferAttribute as v,
TextureLoader as D,
SRGBColorSpace as I,
NearestFilter as V,
RepeatWrapping as P,
AnimationClip as R,
VectorKeyframeTrack as S,
QuaternionKeyframeTrack as E,
NumberKeyframeTrack as L,
RGB_S3TC_DXT1_Format as O,
RGB_PVRTC_4BPPV1_Format as k,
RGB_PVRTC_2BPPV1_Format as Q,
RGB_ETC1_Format as N,
RGB_ETC2_Format as F,
CustomBlending as U,
SrcAlphaFactor as W,
OneMinusSrcAlphaFactor as z,
DstAlphaFactor as j,
DoubleSide as q,
FrontSide as H,
Interpolant as G
} from "/npm/three@0.180.0/+esm";
import {
CCDIKSolver as Y
} from "/npm/three@0.180.0/addons/animation/CCDIKSolver.js/+esm";
Note
the orignal code (three.js) uses
kripken'sammo.jshttps://www.jsdelivr.com/package/npm/ammo.js
Error log
here is source code.