Louis d74178c542
chore: update eslint ignore patterns (#276)
* chore: update eslint ignore patterns

* Add CI linter and test

* remove app arch and start a conversation test case

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2023-10-05 16:49:51 +07:00

26 lines
1.1 KiB
JavaScript

import { definePresetEps, setImporter } from "./import-manager.js";
export * as extensionPoints from "./extension-manager.js";
export * as activationPoints from "./activation-manager.js";
export * as plugins from "./facade.js";
export { default as ExtensionPoint } from "./ExtensionPoint.js";
// eslint-disable-next-line no-undef
if (typeof window !== "undefined" && !window.pluggableElectronIpc)
console.warn(
"Facade is not registered in preload. Facade functions will throw an error if used."
);
/**
* Set the renderer options for Pluggable Electron. Should be called before any other Pluggable Electron function in the renderer
* @param {Object} options
* @param {importer} options.importer The callback function used to import the plugin entry points.
* @param {Boolean|null} [options.presetEPs=false] Whether the Extension Points have been predefined (true),
* can be created on the fly(false) or should not be provided through the input at all (null).
* @returns {void}
*/
export function setup(options) {
setImporter(options.importer);
definePresetEps(options.presetEPs);
}