Plugins in old browsers
Kiosk Shell version 1 uses the Edge Legacy (version 18) browser. Plugins are not supported out of the box in Edge 18, but with some modifications, a subset of plugin features can be made to work.
Note: Page and block components are not supported in Edge 18 because Web Components support is required.
Modifications to boiler plate project
The following changes are required to make the Frontend Plugin Boilerplate ompatible with Edge 18.
- Edit build.mjs, add a property to the
buildArgsobject:
target: 'edge18'
- Edit plugin code, remove
export defaultand replace it with:
async function main(context: Context) {
// ...
};
(window as any).plugins.myPlugin = main;
- Add a property to
manifest.json:
"esm": false