@lvce-editor/extension-management-worker 4.21.1 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2069,8 +2069,10 @@ const createWebViewWorkerRpc2 = async (rpcInfo, port) => {
|
|
|
2069
2069
|
});
|
|
2070
2070
|
};
|
|
2071
2071
|
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2072
|
+
const sourcePathMarker = '/extension-management-worker/src/';
|
|
2073
|
+
const getExtensionHostSubWorkerUrl = (currentUrl = import.meta.url) => {
|
|
2074
|
+
const relativePath = currentUrl.includes(sourcePathMarker) ? '../../../../extension-host-sub-worker/src/extensionHostSubWorkerMain.js' : '../../extension-host-sub-worker/dist/extensionHostSubWorkerMain.js';
|
|
2075
|
+
return new URL(relativePath, currentUrl).href;
|
|
2074
2076
|
};
|
|
2075
2077
|
const extensionHostSubWorkerUrl = getExtensionHostSubWorkerUrl();
|
|
2076
2078
|
|