Skip to content

Instantly share code, notes, and snippets.

@mientjan
Created July 15, 2016 18:16
Show Gist options
  • Save mientjan/909e0b5a1fac4188be54c2a0717cedde to your computer and use it in GitHub Desktop.
Save mientjan/909e0b5a1fac4188be54c2a0717cedde to your computer and use it in GitHub Desktop.
regex import require to import from
import\s(\w+)\s=\srequire\(\'([\w.\s\/]+)\'\)\;
import $1 from '$2';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment