Skip to content

Commit

Permalink
Merge pull request #196 from electron-vite/v0.28.0-beta.3
Browse files Browse the repository at this point in the history
V0.28.0 beta.3
  • Loading branch information
caoxiemeihao authored Jan 5, 2024
2 parents 700201b + 3d96c5f commit 4ec597b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.28.0-beta.3 (2024-01-05)

- d7c0a91 feat: preload built `format` adapt to `esm`

## 0.28.0-beta.2 (2024-01-02)

- f557a98 feat: supports `"type": "module"`, better `esm` logic
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-electron",
"version": "0.28.0-beta.2",
"version": "0.28.0-beta.3",
"description": "Electron 🔗 Vite",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default async function electronSimple(options: ElectronSimpleOptions): Pr
output: {
// For use the Electron API - `import { contextBridge, ipcRenderer } from 'electron'`,
// Note, however, that `preload.ts` should not be split. 🚧
format: 'cjs',
format: esmodule ? 'esm' : 'cjs',

// Whether Node.js is enabled in the Main process or not, the Preload scripts supports loading `electron` module,
// so we need to build it in `cjs` format.
Expand Down

0 comments on commit 4ec597b

Please sign in to comment.