File tree 1 file changed +3
-4
lines changed
client/packages/lowcoder/src/comps/comps/remoteComp
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ async function npmLoader(
14
14
console . log ( "remoteInfo: " , remoteInfo ) ;
15
15
16
16
// Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17
-
17
+ const localPackageVersion = remoteInfo . packageVersion || "latest" ;
18
18
const { packageName, packageVersion, compName } = remoteInfo ;
19
- const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ packageVersion } /index.js` ;
20
- // const entry = `../../../../../public/package/index.js`;
21
- // console.log("Entry", entry);
19
+ const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ localPackageVersion } /index.js` ;
20
+
22
21
try {
23
22
const module = await import ( /* webpackIgnore: true */ entry ) ;
24
23
const comp = module . default ?. [ compName ] ;
You can’t perform that action at this time.
0 commit comments