We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format
esm
1 parent 700201b commit d7c0a91Copy full SHA for d7c0a91
src/simple.ts
@@ -53,7 +53,7 @@ export default async function electronSimple(options: ElectronSimpleOptions): Pr
53
output: {
54
// For use the Electron API - `import { contextBridge, ipcRenderer } from 'electron'`,
55
// Note, however, that `preload.ts` should not be split. 🚧
56
- format: 'cjs',
+ format: esmodule ? 'esm' : 'cjs',
57
58
// Whether Node.js is enabled in the Main process or not, the Preload scripts supports loading `electron` module,
59
// so we need to build it in `cjs` format.
0 commit comments