|
|
|
@ -308,12 +308,11 @@ export class CircomPluginClient extends PluginClient { |
|
|
|
|
// extract all includes from the dependency content
|
|
|
|
|
const dependencyIncludes = (dependencyContent.match(/include ['"].*['"]/g) || []).map((childInclude) => { |
|
|
|
|
const includeName = childInclude.replace(/include ['"]/g, '').replace(/['"]/g, '') |
|
|
|
|
let absFilePath = pathModule.resolve(include.slice(0, include.lastIndexOf('/')), includeName) |
|
|
|
|
|
|
|
|
|
if (!blackPath.includes(includeName)) { |
|
|
|
|
absFilePath = include.startsWith('circomlib') ? absFilePath.substring(1) : absFilePath |
|
|
|
|
if (!blackPath.includes(absFilePath)) { |
|
|
|
|
if(!includeName.startsWith('circomlib')) { |
|
|
|
|
let absFilePath = pathModule.resolve(include.slice(0, include.lastIndexOf('/')), includeName) |
|
|
|
|
absFilePath = include.startsWith('circomlib') ? absFilePath.substring(1) : absFilePath |
|
|
|
|
|
|
|
|
|
dependencyContent = dependencyContent.replace(`${includeName}`, `${absFilePath}`) |
|
|
|
|
return absFilePath |
|
|
|
|
} |
|
|
|
|