Skip to content

Commit 0e95abd

Browse files
fixed bug on licence key input filled
1 parent df156a5 commit 0e95abd

File tree

1 file changed

+12
-3
lines changed
  • client/packages/lowcoder/src/comps/comps/remoteComp

1 file changed

+12
-3
lines changed

client/packages/lowcoder/src/comps/comps/remoteComp/loaders.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import { NPM_PLUGIN_ASSETS_BASE_URL } from "constants/npmPlugins";
22
import { trans } from "i18n";
33
import { CompConstructor } from "lowcoder-core";
4-
import { RemoteCompInfo, RemoteCompLoader, RemoteCompSource } from "types/remoteComp";
4+
import {
5+
RemoteCompInfo,
6+
RemoteCompLoader,
7+
RemoteCompSource,
8+
} from "types/remoteComp";
59

6-
async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor | null> {
10+
async function npmLoader(
11+
remoteInfo: RemoteCompInfo
12+
): Promise<CompConstructor | null> {
713
const { packageName, packageVersion = "latest", compName } = remoteInfo;
814
const entry = `${NPM_PLUGIN_ASSETS_BASE_URL}/${packageName}@${packageVersion}/index.js`;
15+
// const entry = `../../../../../public/package/index.js`;
916
// console.log("Entry", entry);
1017
try {
1118
const module = await import(/* webpackIgnore: true */ entry);
@@ -21,7 +28,9 @@ async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor |
2128
}
2229
}
2330

24-
async function bundleLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor | null> {
31+
async function bundleLoader(
32+
remoteInfo: RemoteCompInfo
33+
): Promise<CompConstructor | null> {
2534
const { packageName, packageVersion = "latest", compName } = remoteInfo;
2635
const entry = `/${packageName}/${packageVersion}/index.js?v=${REACT_APP_COMMIT_ID}`;
2736
const module = await import(/* webpackIgnore: true */ entry);

0 commit comments

Comments
 (0)