0.1.18 • Published 1 year ago
atolink v0.1.18
SWC plugin for transforming a tags to Link components in JSX
Config
["atolink", { "component": "Link", "package": "next/link" }]
Example
// source
const Component = () => {
return <a href="/">Home</a>;
};
// target
import Link from "next/link";
const Component = () => {
return <Link href="/">Home</Link>;
};