pub fn extract_import_spec(rest: &str) -> Option<&str>Expand description
Extracts the relative specifier an import clause resolves against.
Bare specifiers are rejected: only ./ and ../ targets are inlined,
because anything else would drag in a module this code does not
control.
§Arguments
&str- The import clause, without its leadingimportkeyword.
§Returns
Option<&str>- The specifier with its quotes stripped, orNonewhen the clause has nofromor names a non-relative module.