Just a little improvement.
Since the loading of the import function is called asynchronously, I think it would be good to have the process run after the library has been loaded.
import("https://cdn.jsdelivr.net/gh/saharan/OimoPhysics@1.2.3/bin/js/OimoPhysics.js").then(() => {
// Describe the processing after the library is loaded here
});