diff --git a/packages/embark/src/lib/modules/pipeline/index.js b/packages/embark/src/lib/modules/pipeline/index.js index a2a6736fa..1248d2900 100644 --- a/packages/embark/src/lib/modules/pipeline/index.js +++ b/packages/embark/src/lib/modules/pipeline/index.js @@ -353,7 +353,7 @@ class Pipeline { if (err) { return eachCb(err); } - importsList["Embark/contracts/" + contract.className] = contractPath; + importsList["Embark/contracts/" + contract.className] = self.fs.dappPath(contractPath); // add the contract to the exports list to support alternate import syntax importsHelperFile.write(`"${contract.className}": require('./${contract.className}').default,\n`);