If you want to use it in non-module JS, you can use the UMD version from CDN. Here’s an example:
In the example:
LoadScriptAsync("https://www.unpkg.com/babylonjs-lottie@1.2.6/dist/index.umd.js")
is equivalent to:
<script type="text/javascript" src="https://www.unpkg.com/babylonjs-lottie@1.2.6/dist/index.umd.js"></script>
Then you can use:
let lottieTexture = LOTTIE.LottieTexture.ParseFromObject("", lottieJsonObject, scene)