7 Different Ways to Use ES #modules Today!
▻https://hackernoon.com/7-different-ways-to-use-es-modules-today-fc552254ebf4?source=rss----3a81
ES Modules are the future of #javascript, but unlike many other es@next features that developers have raced to take advantage of mainly thanks to build tools like babel, working with ES modules alongside of existing NPM modules is a lot harder to get started with.The purpose of this tutorial is to provide a thorough set of examples for different ways you can approach writing ES modules, without losing interop with the vast library of mostly commonjs modules that exist on NPM today.Before getting started, it’s important that you have a solid understanding of the differences between the ES module and CommonJS formats. If you haven’t already, please check out Gil Tayar’s excellent blog post before continuing.Native ES Modules in #nodejs: Status And Future Directions, Part IGoalsEvery approach (...)