File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/packages/lowcoder/src/comps/comps/remoteComp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor |
77 // log.info("load npm plugin:", remoteInfo);
88 const { packageName, packageVersion = "latest" , compName } = remoteInfo ;
99 const entry = `${ NPM_PLUGIN_ASSETS_BASE_URL } /${ packageName } @${ packageVersion } /index.js` ;
10- const module = await import ( /* @vite -ignore */ entry ) ;
10+ const module = await import ( /* webpackIgnore: true */ entry ) ;
1111 const comp = module . default ?. [ compName ] ;
1212 if ( ! comp ) {
1313 throw new Error ( trans ( "npm.compNotFound" , { compName } ) ) ;
@@ -18,7 +18,7 @@ async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor |
1818async function bundleLoader ( remoteInfo : RemoteCompInfo ) : Promise < CompConstructor | null > {
1919 const { packageName, packageVersion = "latest" , compName } = remoteInfo ;
2020 const entry = `/${ packageName } /${ packageVersion } /index.js?v=${ REACT_APP_COMMIT_ID } ` ;
21- const module = await import ( /* @vite -ignore */ entry ) ;
21+ const module = await import ( /* webpackIgnore: true */ entry ) ;
2222 const comp = module . default ?. [ compName ] ;
2323 if ( ! comp ) {
2424 throw new Error ( trans ( "npm.compNotFound" , { compName } ) ) ;
You can’t perform that action at this time.
0 commit comments