This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use forge bundle for libp2p-crypto
- Loading branch information
1 parent
c6ff576
commit 76c3495
Showing
3 changed files
with
16 additions
and
29,561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict' | ||
|
||
const path = require('path') | ||
|
||
module.exports = { | ||
webpack: { | ||
resolve: { | ||
alias: { | ||
'node-forge': path.resolve( | ||
path.dirname(require.resolve('libp2p-crypto')), | ||
'../vendor/forge.bundle.js' | ||
) | ||
} | ||
} | ||
} | ||
This comment has been minimized.
Sorry, something went wrong. |
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2 comments
on commit 76c3495
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no but it's more efficient and less brittle. the other broke bot of aegir bot because the file path of the file requiring node-forge changed making the relative path used invalid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. so that means that we should probably include that .aegir on the guidelines too?
so this is the new way that has to be applied to all repos?
@dignifiedquire