How to package npm modules for use in ObservableHQ?

I’m trying to use microstates module with ObservableHQ but both CJS and ES imports fail.

This package works in many environments. I’d love to get it to work in ObservableHQ. How do we need to build the packages to make it work?

This seems to work:


(found using this helpful tool!)

1 Like

Not as intuitive as require('microstates') but better than not working :slight_smile: