Skip to content

Instantly share code, notes, and snippets.

@whs
Created December 9, 2019 10:00
Show Gist options
  • Save whs/1b2e03b6da2967c55ff1394d410a1c47 to your computer and use it in GitHub Desktop.
Save whs/1b2e03b6da2967c55ff1394d410a1c47 to your computer and use it in GitHub Desktop.
path.replaceWith(
t.callExpression(t.identifier('alert'), [
t.stringLiteral('Hello world')
])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment