Context: AWS Lambda runs Node.js v4, but locally we tend to run the latest.
Given this mismatch, it would be nice to set the target Node.js version as an option to this babel plugin, with the default value of process.version. We could then say we always want babel to transpile to Node.js-v4-compatible JS.
Context: AWS Lambda runs Node.js v4, but locally we tend to run the latest.
Given this mismatch, it would be nice to set the target Node.js version as an option to this babel plugin, with the default value of
process.version
. We could then say we always want babel to transpile to Node.js-v4-compatible JS.