Ensure url is consistent for circom dev deps

pull/5370/head
ioedeveloper 1 year ago committed by Aniket
parent 28bfa95c86
commit e766517b4a
  1. 1
      apps/circuit-compiler/src/app/services/circomPluginClient.ts

@ -256,6 +256,7 @@ export class CircomPluginClient extends PluginClient {
if (depPath) {
// if depPath is provided, try to resolve include import from './deps' folder in remix
path = pathModule.resolve(depPath.slice(0, depPath.lastIndexOf('/')), include)
path = path.replace('https:/', 'https://')
if (path.indexOf('/') === 0) path = path.slice(1)
dependencyContent = await this.call('contentImport', 'resolveAndSave', path, null)
} else {

Loading…
Cancel
Save