airbnb / polyglot.js

Give your JavaScript the ability to speak many languages.
http://airbnb.github.io/polyglot.js
BSD 2-Clause "Simplified" License
3.71k stars 208 forks source link

Support commonjs (node) and esmodules (future) #125

Closed mreinstein closed 6 years ago

mreinstein commented 6 years ago

This enables using polyglot in more environments. Open for feedback on needed changes!

mreinstein commented 6 years ago

This PR also replaces the npm prepublish event with prepublishOnly. See https://docs.npmjs.com/misc/scripts#deprecation-note for details.

mreinstein commented 6 years ago

@ljharb I took the liberty of updating the tested node versions to cull super old versions. If this is unwanted I can back those changes out. Just let me know. 👍