Skip to content

Commit

Permalink
Merge pull request #69 from electron-vite/v0.14.3
Browse files Browse the repository at this point in the history
V0.14.3
caoxiemeihao authored May 20, 2023
2 parents 6a9b037 + b5216fc commit 7512da3
Showing 15 changed files with 613 additions and 512 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
## 0.14.3 (2023-05-20)

- 6901413 chore: bump deps
- 7a601aa test: v0.14.3
- f7c4b46 chore: cleanup
- caf1172 docs: explain where put `type: 'cjs'` module
- 30b5bd8 fix: compatible Windows path

## 0.14.2 (2023-05-05)

- 6930c08 v0.14.2
- d99bec7 feat(build): target `node14`
- af15ae0 fix: correct lookup path for `require()` #63 | closes [#63]https://github.com/electron-vite/vite-plugin-electron-renderer/issues/63
- af15ae0 fix: correct lookup path for `require()` #63 | closes [#63](https://github.com/electron-vite/vite-plugin-electron-renderer/issues/63)
- 69a6a0b chore: cleanup
- ef1f57e docs: update
- dd3e052 chore: cleanup
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ export default {
}
```

2. Using the third-part C/C++, `esm` package in the Renderer process.
2. Using the third-part `C/C++`, `esm` package in the Renderer process.

```js
import renderer from 'vite-plugin-electron-renderer'
@@ -65,6 +65,8 @@ export default {
}
```

> By the way, if a module is marked as `type: 'cjs'`, the plugin just loads it in using `require()`. So it should be put into `dependencies`.
## API *(Define)*

`renderer(options: RendererOptions)`
4 changes: 2 additions & 2 deletions examples/quick-start/package.json
Original file line number Diff line number Diff line change
@@ -15,12 +15,12 @@
"build": "vite build && electron-builder"
},
"dependencies": {
"serialport": "^10.5.0",
"serialport": "^11.0.0",
"sqlite3": "^5.1.6"
},
"devDependencies": {
"@types/sqlite3": "^3.1.8",
"electron": "^23.1.4",
"electron": "^24.3.1",
"electron-builder": "^23.6.0",
"electron-store": "^8.1.0",
"execa": "^7.1.1",
2 changes: 1 addition & 1 deletion examples/worker/package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
},
"dependencies": {},
"devDependencies": {
"electron": "^23.1.4",
"electron": "^24.3.1",
"electron-builder": "^23.6.0",
"typescript": "^5.0.2",
"vite-plugin-electron": "^0.11.1",
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-electron-renderer",
"version": "0.14.2",
"version": "0.14.3",
"description": "Support use Node.js API in Electron-Renderer",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -22,19 +22,22 @@
"dev": "vite build --watch",
"build": "vite build",
"types": "tsc --emitDeclarationOnly",
"prepublishOnly": "npm run test && npm run build",
"prepublishOnly": "npm run build && npm run test",
"test": "vitest run"
},
"dependencies": {
"lib-esm": "~0.3.0"
"lib-esm": "~0.4.0"
},
"devDependencies": {
"esbuild": "^0.17.12",
"rollup": "^3.19.1",
"typescript": "^5.0.2",
"vite": "^4.2.0",
"electron": "^24.3.1",
"esbuild": "^0.17.19",
"node-fetch": "^3.3.1",
"rollup": "^3.22.0",
"serialport": "^11.0.0",
"typescript": "^5.0.4",
"vite": "^4.3.8",
"vite-plugin-utils": "^0.4.1",
"vitest": "^0.29.3"
"vitest": "^0.31.1"
},
"files": [
"dist"
Loading

0 comments on commit 7512da3

Please sign in to comment.