diff --git a/README.md b/README.md index 2d7d923..a90f92d 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ English | [็ฎ€ไฝ“ไธญๆ–‡](README.zh-CN.md) ๐Ÿ“ฆ Out of the box ๐ŸŽฏ Based on the official [react-ts](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) template, less invasive -๐ŸŒฑ Simple directory structure๏ผŒreal flexible -๐Ÿ’ช Support Use Electronใ€Node.js API and in Electron-Renderer +๐ŸŒฑ Extensible, really simple directory structure +๐Ÿ’ช Support using Node.js API in Electron-Renderer ๐Ÿ”ฉ Support C/C++ native addons ๐Ÿ–ฅ It's easy to implement multiple windows @@ -44,7 +44,7 @@ npm create electron-vite โ”‚ โ””โ”€โ”€ uninstallerIcon.ico Icon for the application uninstaller โ”‚ โ”œโ”€โ”€ release Generated after production build, contains executables -โ”‚ โ””โ”€โ”€{version} +โ”‚ โ””โ”€โ”€ {version} โ”‚ โ”œโ”€โ”€ {os}-unpacked Contains unpacked application executable โ”‚ โ””โ”€โ”€ Setup.{ext} Installer for the application โ”‚ @@ -64,21 +64,11 @@ npm create electron-vite See more ๐Ÿ‘‰ [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron-renderer#dependencies-vs-devdependencies) -## ๐Ÿšจ ESM packages +## ๐Ÿšจ Node.js ESM packages -**e.g.** `node-fetch` `execa` `got` ...others +**e.g.** `node-fetch` `execa` `got` ... -1. `npm i vite-plugin-esmodule -D` -2. Configure in vite.config.ts - -```ts -import esmodule from 'vite-plugin-esmodule' -export default { - plugins: [ - esmodule(['got', 'execa', 'node-fetch']), - ], -} -``` +[๐Ÿ‘‰ Using Node.js ESM packages in Electron-Renderer](https://github.com/electron-vite/vite-plugin-electron-renderer#-nodejs-esm-packages)