vite-electron-renderer
v0.0.3
Published
Provides electron renederer externals support for Vite.
Downloads
4
Maintainers
Readme
vite-electron-renderer
Provides electron renederer externals support for Vite.
Installation
Using npm:
$ npm install --save-dev vite-electron-renderer
Example
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import electronRenderer from 'vite-electron-renderer';
export default defineConfig({
...
plugins: [react(), electronRenderer()],
...
});
How to work
convert import to require for node Modules. include builtinModules, and project dependencies.