Documentation
Migrate From V1

Migrate From V1 to V2

Breaking Changes

Replaced Imports:

  • import { launchEditorMiddleware } from 'react-dev-inspector/plugins/webpack'
    -> import { launchEditorMiddleware } from '@react-dev-inspector/middleware'

  • import { inspectorServer } from 'react-dev-inspector/plugins/vite'
    -> import { inspectorServer } from '@react-dev-inspector/vite-plugin'

Replaced references path:

  • 'react-dev-inspector/plugins/babel' -> '@react-dev-inspector/babel-plugin'

  • 'react-dev-inspector/plugins/umi/react-inspector'

    • -> '@react-dev-inspector/umi3-plugin'
    • -> '@react-dev-inspector/umi4-plugin'

Deprecated and Removed:

  • the babel plugin and middleware in package react-dev-inspector/plugins/webpack was splited to two packages:

    • @react-dev-inspector/babel-plugin
    • @react-dev-inspector/middleware
  • import type { InspectorConfig } from 'react-dev-inspector/plugins/webpack'

    • the babel plugin config type changed to
      import type { InspectorBabelPlugin } from '@react-dev-inspector/babel-plugin'
  • import { ReactInspectorPlugin } from 'react-dev-inspector/plugins/webpack'

    • the dev server middleware changed to launchEditorMiddleware,
      import { launchEditorMiddleware } from '@react-dev-inspector/middleware'