Created
April 15, 2016 18:43
-
-
Save nick/d40c36acd8fd84228861698cb5740fa2 to your computer and use it in GitHub Desktop.
require -> import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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