atolink

0.1.18 • Public • Published

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>;
};

Readme

Keywords

none

Package Sidebar

Install

npm i atolink

Weekly Downloads

1

Version

0.1.18

License

none

Unpacked Size

3.32 MB

Total Files

3

Last publish

Collaborators

  • ninomaj