File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
client/packages/lowcoder/src/comps/comps/remoteComp Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,18 @@ async function npmLoader(
1313
1414 console . log ( "remoteInfo: " , remoteInfo ) ;
1515
16- // Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
16+ // Falk: removed "packageVersion = "latest" as default value for packageVersion - to ensure no automatic version jumping.
1717
18- const localPackageVersion = remoteInfo . packageVersion || "latest" ;
18+ var localPackageVersion = remoteInfo . packageVersion || "latest" ;
1919 const { packageName, packageVersion, compName } = remoteInfo ;
20+
21+ // Falk: Special handling for lowcoder-comps package for old versions before 2.4.0
22+ if ( packageName === "lowcoder-comps" ) {
23+ localPackageVersion = "0.0.32" ;
24+ }
25+
2026 const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ localPackageVersion } /index.js` ;
27+
2128 try {
2229 const module = await import ( /* webpackIgnore: true */ entry ) ;
2330 const comp = module . default ?. [ compName ] ;
You can’t perform that action at this time.
0 commit comments