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

https://github.com/davidmyersdev/vite-plugins

A collection of useful Vite plugins.
https://github.com/davidmyersdev/vite-plugins

Last synced: 3 months ago
JSON representation

A collection of useful Vite plugins.

Awesome Lists containing this project

README

          

# vite-plugins

A collection of useful Vite plugins.

```sh
npm install --save-dev vite-plugins
```

```ts
import { defineConfig } from 'vite'
import { externalizeDeps, nodePolyfills } from 'vite-plugins'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
externalizeDeps({
nodeBuiltins: false,
}),
nodePolyfills({
protocolImports: true,
}),
],
})
```

## Included plugins

- [vite-plugin-externalize-deps](https://github.com/voracious/vite-plugin-externalize-deps) A configurable Vite plugin to help externalize your dependencies (including subpaths)
- [vite-plugin-node-polyfills](https://github.com/voracious/vite-plugin-node-polyfills) A Vite plugin to polyfill Node's Core Modules for browser environments.