vite-plugin-electron-renderer
Advanced tools
Changelog
0.14.6 (2024-09-20)
Changelog
0.14.4 (2023-05-21)
lib-esm
to devDependencies | closes electron-vite-react#149Changelog
0.14.3 (2023-05-20)
type: 'cjs'
moduleChangelog
0.14.1 (2023-04-15)
.cjs
file import path #60Changelog
0.14.0 (2023-04-13)
export interface RendererOptions {
resolve?: {
- [id: string]: (() => string | { platform: 'browser' | 'node' } | Promise<string | { platform: 'browser' | 'node' }>)
+ [module: string]: {
+ type: 'cjs' | 'esm',
+ build?: (args: {
+ cjs: (module: string) => Promise<string>,
+ esm: (module: string, buildOptions?: import('esbuild').BuildOptions) => Promise<string>,
+ }) => Promise<string>
+ }
}
}
esm
modules.npmrc
options.resolve
Changelog
0.13.14 (2023-03-31)
Changelog
0.13.12 (2023-03-28)
install.mjs
-> install.js
If you build in cjs
format, you need to import the corresponding shim plugin
import cjsShim from 'vite-plugin-electron-renderer/dist/cjs-shim.mjs'
export default {
build: {
rollupOptions: {
output: {
format: 'cjs',
},
},
},
plugins: [
cjsShim(),
],
}