Three.js and Ammo-ES. Error: ammo-es.js:37 Uncaught TypeError: ia[J[((J[(a >> 2)] + 8) >> 2)]] is not a function

Hello,

I converted Ammo.js to ES6 module like in this message: How to convert ammo.js to es6 module? - #4 by gonnavis

I got this simple Three.js + Ammo.js example Plunker - Three.js + Ammo.js. Falling Box from the tutorial: Intro to JavaScript 3D Physics using Ammo.js and Three.js You can open the browser console and you will see this error: ammo-es.js:37 Uncaught TypeError: ia[J[((J[(a >> 2)] + 8) >> 2)]] is not a function

image

This error occurs when I add this line of code: ms.getWorldTransform(tmpTrans); here:

let counter = 0;

function updatePhysics(deltaTime)
{
    world.stepSimulation(deltaTime, 10);

    for (let i = 0; i < rigidBodies.length; i++)
    {
        let objThree = rigidBodies[i];
        let objAmmo = objThree.userData.physicsBody;
        let ms = objAmmo.getMotionState();
        if (ms)
        {
            if (counter < 1)
            {
                counter++;
                ms.getWorldTransform(tmpTrans);
                console.log(ms);
            }
            // 
            // const p = tmpTrans.getOrigin();
            // const q = tmpTrans.getRotation();
            // objThree.position.set(p.x(), p.y(), p.z());
            // objThree.quaternion.set(q.x(), q.y(), q.z());
        }
    }
}