mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-24 20:51:55 +00:00
fix(pipeline): fix contract magic imports
This commit is contained in:
parent
0d72ebeda8
commit
fc113e8b2d
@ -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`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user