🏠 back to Observable

How to package npm modules for use in ObservableHQ?


#1

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?


#2

This seems to work:

require('https://bundle.run/microstates@0.12.0')

(found using this helpful tool!)


#3

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