File tree 1 file changed +9
-2
lines changed
client/packages/lowcoder/src/comps/comps/remoteComp
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,18 @@ async function npmLoader(
13
13
14
14
console . log ( "remoteInfo: " , remoteInfo ) ;
15
15
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.
17
17
18
- const localPackageVersion = remoteInfo . packageVersion || "latest" ;
18
+ var localPackageVersion = remoteInfo . packageVersion || "latest" ;
19
19
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
+
20
26
const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ localPackageVersion } /index.js` ;
27
+
21
28
try {
22
29
const module = await import ( /* webpackIgnore: true */ entry ) ;
23
30
const comp = module . default ?. [ compName ] ;
You can’t perform that action at this time.
0 commit comments