Created
November 30, 2022 16:04
-
-
Save Oyelowo/7a6bfa21bce845dec0baab82f95f365e to your computer and use it in GitHub Desktop.
Use this to rename imports to include .js extensions for new esmodule import format
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
Search with in vscode: | |
(\bfrom\s+["']\..*)(["']) | |
replace with: | |
$1.js$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment