Created
July 26, 2022 01:42
-
-
Save 20after4/07c760ad15f40d47983ccb9da74c4d8f to your computer and use it in GitHub Desktop.
regex to append .js to end end of all ecmascript module imports
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
search pattern: | |
((from ['"]\..*)[^.](\w\w))(['"]) | |
replacement string: | |
$1.js$4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment