We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
In documentation of electron-vite , i can use
export default defineConfig({ preload: { build: { rollupOptions: { output: { format: 'es' } } } } // ... })
In discussion section of electron-vite (sandbox: true? #423), we can see :
preload: { build: { rollupOptions: { output: { format: 'cjs', }, }, }, },
How i can use it nuxt-electron ?
electron: { { entry: 'electron/preload.ts', vite: { build: { rollupOptions: { output: { format: 'cjs' }, }, }, }, onstart(args) { args.reload(); }, }, ], renderer: {}, disableDefaultOptions: false, },
because cjs file is not generated.
Please help me
The text was updated successfully, but these errors were encountered:
It's ok
electron: { build: [ { entry: 'electron/main.ts', vite: { build: { rollupOptions: { external: ['serialport'], output: { format: 'esm' } } } }, }, { entry: 'electron/preload.ts', vite: { build: { rollupOptions: { output: { format: 'cjs' }, }, }, }, onstart(args) { args.reload(); }, }, ], renderer: {}, disableDefaultOptions: false, },
Sorry, something went wrong.
No branches or pull requests
Hi,
In documentation of electron-vite , i can use
export default defineConfig({
preload: {
build: {
rollupOptions: {
output: {
format: 'es'
}
}
}
}
// ...
})
In discussion section of electron-vite (sandbox: true? #423), we can see :
preload: {
build: {
rollupOptions: {
output: {
format: 'cjs',
},
},
},
},
How i can use it nuxt-electron ?
because cjs file is not generated.
Please help me
The text was updated successfully, but these errors were encountered: