File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
client/packages/lowcoder/src/comps/comps/remoteComp Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ async function npmLoader(
1414 console . log ( "remoteInfo: " , remoteInfo ) ;
1515
1616 // Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17-
17+ const localPackageVersion = remoteInfo . packageVersion || "latest" ;
1818 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+
2221 try {
2322 const module = await import ( /* webpackIgnore: true */ entry ) ;
2423 const comp = module . default ?. [ compName ] ;
You can’t perform that action at this time.
0 commit comments