Skip to content

Instantly share code, notes, and snippets.

@gabro
Created December 1, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabro/f7d90487b4efb09cca283ae3ac52d625 to your computer and use it in GitHub Desktop.
Save gabro/f7d90487b4efb09cca283ae3ac52d625 to your computer and use it in GitHub Desktop.
export default function (babel) {
const { types: t } = babel;
return {
visitor: {
NumericLiteral(path) {
path.node.value += 1
}
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment