Last active
August 11, 2016 10:12
-
-
Save helb/f98122f85ed04d978868 to your computer and use it in GitHub Desktop.
convert require() to import
This file contains hidden or 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
find: | |
(var|const) ([a-zA-Z]+) = require\((.+)\) | |
replace with: | |
import $2 from $3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment