This plugin transforms
void 0 which returns undefined regardless of if it's been reassigned.
foo === undefined;
foo === void 0;
npm install babel-plugin-transform-undefined-to-void
babel --plugins transform-undefined-to-void script.js