Skip to content

Commit

Permalink
fix: lookup svg-core using require.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
zeppelin committed Jun 3, 2022
1 parent a279589 commit e8b8280
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ module.exports = {

treeForVendor(vendorTree) {
const iconRollups = [];
const pathToCore = path.join(
this._nodeModulesPath,
'@fortawesome',
'fontawesome-svg-core'
const pathToCore = path.dirname(
require.resolve('@fortawesome/fontawesome-svg-core/package.json')
);

Object.keys(this.fontawesomeConfig.icons).forEach((pack) => {
Expand Down

0 comments on commit e8b8280

Please sign in to comment.