Skip to content

Commit

Permalink
docs: add E28 support for ESM in tutorial.md (electron#40690)
Browse files Browse the repository at this point in the history
docs: add E28 support for ESM in tutorial
  • Loading branch information
VerteDinde authored and MrHuangJser committed Dec 11, 2023
1 parent 6a73073 commit e998faf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/tutorial-2-first-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ const { app, BrowserWindow } = require('electron/main')
For more information, see the [Process Model docs](../tutorial/process-model.md#process-specific-module-aliases-typescript).
</details>

:::warning ES Modules in Electron
:::info ES Modules in Electron

[ECMAScript modules](https://nodejs.org/api/esm.html) (i.e. using `import` to load a module)
are currently not directly supported in Electron. You can find more information about the
state of ESM in Electron in [electron/electron#21457](https://github.com/electron/electron/issues/21457).
are supported in Electron as of Electron 28. You can find more information about the
state of ESM in Electron and how to use them in our app in [our ESM guide](../tutorial/esm.md).

:::

Expand Down

0 comments on commit e998faf

Please sign in to comment.