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 |
7
7
// log.info("load npm plugin:", remoteInfo);
8
8
const { packageName, packageVersion = "latest" , compName } = remoteInfo ;
9
9
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 ) ;
11
11
const comp = module . default ?. [ compName ] ;
12
12
if ( ! comp ) {
13
13
throw new Error ( trans ( "npm.compNotFound" , { compName } ) ) ;
@@ -18,7 +18,7 @@ async function npmLoader(remoteInfo: RemoteCompInfo): Promise<CompConstructor |
18
18
async function bundleLoader ( remoteInfo : RemoteCompInfo ) : Promise < CompConstructor | null > {
19
19
const { packageName, packageVersion = "latest" , compName } = remoteInfo ;
20
20
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 ) ;
22
22
const comp = module . default ?. [ compName ] ;
23
23
if ( ! comp ) {
24
24
throw new Error ( trans ( "npm.compNotFound" , { compName } ) ) ;
You can’t perform that action at this time.
0 commit comments