Skip to content

Instantly share code, notes, and snippets.

@jamestalmage
Created April 3, 2016 19:04
Show Gist options
  • Save jamestalmage/885e1d0d732557cfb5cf854aee04fd19 to your computer and use it in GitHub Desktop.
Save jamestalmage/885e1d0d732557cfb5cf854aee04fd19 to your computer and use it in GitHub Desktop.
babel.transform(`foo()`, {
plugins: [
function () {
return {
visitor: {
CallExpression() {
console.log('plugin 1');
}
}
}
},
function () {
return {
visitor: {
CallExpression() {
console.log('plugin 2');
}
}
}
}
]
});
@jamestalmage
Copy link
Author

I see:

plugin 1
plugin 2

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