🏠 back to Observable

Can't require Three.MeshLine package


#1

Can’t import npm module three.meshline as it expects to find either THREE or require globals.

Is there a workaround for this in Observable or does it require a change to the package?


#2

This is pretty similar to how you load THREE’s OrbitControls. You need to populate the THREE global, and then extract the globals defined by the three.meshline plugin. Here are some changes you can merge: