Created
October 24, 2015 18:10
-
-
Save petermoresi/a09ec44262ace28ff9e3 to your computer and use it in GitHub Desktop.
Convert require to new JS import statements
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
%s/var \(.*\) = require('\(.*\)');/import \1 from '\2'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment