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.
- Host: GitHub
- URL: https://github.com/davidmyersdev/vite-plugins
- Owner: davidmyersdev
- Created: 2022-10-21T13:22:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-21T13:35:56.000Z (over 3 years ago)
- Last Synced: 2025-10-23T00:36:13.442Z (8 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.