removeImport(importString)

Removes import from js file. Accepts code with imports and automatically removes provided imports from file imports.

Parameters

importString
string
required

Full import line, e.g. import { useEffect } from "react".