An open API service indexing awesome lists of open source software.

https://github.com/tjx666/vite-plugin-inspect-config

inspect vite resolved config with infinite object level
https://github.com/tjx666/vite-plugin-inspect-config

Last synced: 27 days ago
JSON representation

inspect vite resolved config with infinite object level

Awesome Lists containing this project

README

        

# vite-plugin-inspect-config [![npm](https://img.shields.io/npm/v/vite-plugin-inspect-config.svg)](https://npmjs.com/package/vite-plugin-inspect-config)

[![Unit Test](https://github.com/tjx666/vite-plugin-inspect-config/actions/workflows/unit-test.yml/badge.svg)](https://github.com/tjx666/vite-plugin-inspect-config/actions/workflows/unit-test.yml)

Inspect vite resolved config with infinite object level

> **NOTE**
> You can utilize the `DEBUG_DEPTH` [environment variable](https://github.com/debug-js/debug#environment-variables) within the [debug](https://github.com/debug-js/debug) package to output configuration at an infinite depth level.

![effect](docs/effect.png)

## Installation

```bash
npm i -D vite-plugin-inspect-config
```

## Usage

```ts
// vite.config.ts
import vitePluginInspectConfig from 'vite-plugin-inspect-config';

export default defineConfig({
plugins: [
vitePluginInspectConfig({
// You can use shortcut `.` to output resolved config when `vite dev`
enable: true,
}),
],
});
```

## TODOs

- [ ] output rollup, esbuild version
- [ ] output the pre built packages name

## License

[MIT](./LICENSE) License © 2023-PRESENT [YuTengjing](https://github.com/tjx666)