JSPM

  • Created
  • Published
  • Downloads 1129026
  • Score
    100M100P100Q201378F
  • License MIT

Inspect the intermediate state of Vite plugins

Package Exports

  • vite-plugin-inspect

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-inspect) 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-inspect

NPM version

Inspect the intermediate state of Vite plugins. Useful for debugging and authoring plugins.

Install

npm i -D vite-plugin-inspect

Add plugin to your vite.config.ts:

// vite.config.ts
import Inspect from 'vite-plugin-inspect'

export default {
  plugins: [
    Inspect() // only applies in dev mode
  ]
}

Then visit localhost:3000/__inspect to inspect the modules.

Sponsors

License

MIT License © 2021 Anthony Fu