Skip to content

Instantly share code, notes, and snippets.

@orenelbaum
Last active October 14, 2021 02:12
Show Gist options
  • Save orenelbaum/1b71fc3b928c7dd9eab651a1e70af9eb to your computer and use it in GitHub Desktop.
Save orenelbaum/1b71fc3b928c7dd9eab651a1e70af9eb to your computer and use it in GitHub Desktop.
Remove Imports Plugin
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