Skip to content

Commit ab3f2dc

Browse files
committed
Don't run user code on main thread unless an extension/plugin specifically requests it with runOnMainThread
1 parent dc13ee4 commit ab3f2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/componentLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ export async function loadComponent(
494494
return loadComponentDirectories(); // return the promise
495495
});
496496
}
497-
if (config.extensionModule || config.pluginModule) {
497+
if ((config.extensionModule || config.pluginModule) && (!isMainThread || config.runOnMainThread)) {
498498
const extensionModule = await scopedImport(
499499
join(componentDirectory, config.extensionModule || config.pluginModule),
500500
applicationScope

0 commit comments

Comments
 (0)