Jest and pkg are not yet supported ES Modules due to the segmentation fault when running dynamic import import(). :(
In Jest, we set up to transpile config files for testing into CommonJS manually.
For the standalone binary powered by pkg, we are still disabling ESM import as same as #525.
This PR is also including another improvement for the config: Export Config type to allow better experience while writing a config in IDE. @type JSDoc annotation is available in both of CommonJS and ES Modules.
Updated cosmiconfig to the latest version, and supported ES Modules in the configuration file.
Jest and pkg are not yet supported ES Modules due to the segmentation fault when running dynamic import
import()
. :(This PR is also including another improvement for the config: Export
Config
type to allow better experience while writing a config in IDE.@type
JSDoc annotation is available in both of CommonJS and ES Modules.If user want to swap the engine from Marp Core,
Config
type also can provide a suitable type for the swapped engine.