0.0.12 • Published 9 months ago

unplugin-react-inspector v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

unplugin-react-inspector

Introduction

Open the editor by clicking on the browser element,A plugin to improve the happiness index of react development.

Install

npm i -D unplugin-react-inspector

Usage

Configuration Vite

import { vitePlugin as reactInspectorPlugin } from "unplugin-react-inspector";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
      ...
      reactInspectorPlugin({ enabled: true })
  ],
});

Configuration Webpack

const { webpackPlugin: reactInspectorPlugin } = require("unplugin-react-inspector");

module.exports = {
  plugins: [
      ...
      reactInspectorPlugin({ enabled: true })
  ],
};

Configuration Rspack

const { rspackPlugin: reactInspectorPlugin } = require("unplugin-react-inspector");

/**
 * @type {import('@rspack/cli').Configuration}
 */
module.exports = {
  plugins: [
      ...
      reactInspectorPlugin({ enabled: true })
  ],
};

Options

interface Options {
  /**
   * Entry file path
   * @example
   * "src/main.tsx"
   * ["src/main.tsx", "src/main.jsx"],
   * /(src\/main\.tsx)|(src\/main\.jsx)/
   * @default "src/main.tsx"
   */
  injectClientEntryFile?: string | string[] | RegExp;

  /**
   * Default enable state
   * @default false
   */
  enabled?: boolean;
}
0.0.10

9 months ago

0.0.11

9 months ago

0.0.12

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.1

12 months ago