if(!module.default||typeofmodule.default!=='function')thrownewError(`Content script must export a function under the "default" key: Plugin: ${pluginId}: Script: ${contentScript.id}`);
constloadedModule=module.default({});
if(!loadedModule.plugin&&!loadedModule.codeMirrorResources&&!loadedModule.codeMirrorOptions)thrownewError(`Content script must export a "plugin" key or a list of CodeMirror assets or define a CodeMirror option: Plugin: ${pluginId}: Script: ${contentScript.id}`);