Skip to content

Instantly share code, notes, and snippets.

@sebs
Created September 24, 2018 11:07
Show Gist options
  • Save sebs/836e7a19afc1a5c54e07a44c07b9791d to your computer and use it in GitHub Desktop.
Save sebs/836e7a19afc1a5c54e07a44c07b9791d to your computer and use it in GitHub Desktop.

es6-modules on npm

  • all code is pure es6
    • transpiled for different platforms
  • the last platform related change you gonna make to the code
  • do not vendor lockin to a transpile when writing the ocde
    • do this lock in when adding a node_js export to be consumed by node
  • Code works as a Javascript Module w.o. changes
  • other platforms have to be transpiled.
  • over time: all platforms can use .js files as es6 and all is good
  • es6 code unit tested as es6 lib (using babel et al)
  • integration to node tested w.o. babel

es6 first class citizen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment