I contributed a PR to three.js three.terrain project making it work with latest three.js version 175 using modules.
https://github.com/IceCreamYou/THREE.Terrain/pull/42
I contributed a PR to three.js for a Rapier physics terrain example. There was an example with Ammo but not Rapier.