PolyglotEngine
Create and configure a PolyglotEngine. Within the configuration scope, you can install plugins and adjust general engine configuration that will be applied to every context.
Using the DSL
The install function allows plugins to be installed into the engine configuration:
val engine = PolyglotEngine {
// apply a language plugin
install(JavaScript) {
// configure the plugin
esm = true
}
}
Content copied to clipboard
Plugins can interact with each other within the configuration scope, which can be used to establish dependencies between them: for example, the JavaScript plugin may depend on the VFS plugin to load core intrinsics from a bundle.