Last active
October 14, 2021 02:12
-
-
Save orenelbaum/1b71fc3b928c7dd9eab651a1e70af9eb to your computer and use it in GitHub Desktop.
Remove Imports Plugin
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
export default function removeImportsPlugin({ types }) { | |
return { | |
visitor: { | |
ImportDeclaration(path) { | |
path.remove() | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment