JSPM

vite-plugin-react-click-to-component

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5941
  • Score
    100M100P100Q134118F
  • License MIT

Option+Click React components in your browser to open the source in your editor

Package Exports

  • vite-plugin-react-click-to-component
  • vite-plugin-react-click-to-component/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vite-plugin-react-click-to-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vite-plugin-react-click-to-component npm

Option+Click React components in your browser to open the source in your editor.

Light version of ericclemmons/click-to-component that uses Vite's launch editor middleware to open the source code in your currently running editor.

Installation

npm i -D vite-plugin-react-click-to-component

In your Vite config:

import { defineConfig } from "vite";
import { swcReactRefresh } from "vite-plugin-swc-react-refresh"; // or @vitejs/plugin-react
import { reactClickToComponent } from "vite-plugin-react-click-to-component";

export default defineConfig({
  plugins: [swcReactRefresh(), reactClickToComponent()],
});