Skip to content

Instantly share code, notes, and snippets.

@nick
Created April 15, 2016 18:43
Show Gist options
  • Save nick/d40c36acd8fd84228861698cb5740fa2 to your computer and use it in GitHub Desktop.
Save nick/d40c36acd8fd84228861698cb5740fa2 to your computer and use it in GitHub Desktop.
require -> import
(var| ) ([a-zA-Z_]+) *= *require\('([^']+)'\)(;|,)
import $2 from '$3';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment