Cannot use mdast-util-from-markdown as es module export in electron, possible to get it with cjs? #108
-
![]() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Welcome @nikitavoloboev! 👋
See https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-import-esm-in-electron
|
Beta Was this translation helpful? Give feedback.
Welcome @nikitavoloboev! 👋
See https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-import-esm-in-electron
You have options:
unified
,mdast-util-from-markdown
, and the ecosystem of packages target ES2020 and ESM (both supported by Node 16 LTS).You are welcome to transpile/down level that into earlier versions of JavaScript, or any bespoke/legacy module format you like using build tools like
webpack
,r…