Today we are excited to announce full support for ES modules across all Textile JS libraries. We have always been interested in supporting ES Modules but were focused on CommonJS flows and building modules via transpilers such as Webpack or via framework tooling like React. Now, our Typescript sources are compiled into CommonJS and ES modules, so those building for NodeJS and via transpilers are still covered... but folks can now also consume all active
@textile/* libs directly as ES Modules.
We're in the process of updating examples, creating new notebooks and demos, and generally kicking the tires on our shiny new modules. If you have a project or idea that you want to start testing, jump in and give it a go. We've already published the latest updates to NPMJS, and you can pull them in dynamically via your friendly local neighborhood CDN (we recommend UNPKG).
Getting started with ES Modules is pretty easy. If you're running a recent version of NodeJS, then you're probably all set to go. You can
npm i as per usual, and just start