Skip to content

Commit

Permalink
[fix] dll loading issue inside monorepo (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuverma authored Dec 17, 2020
1 parent 30edcf4 commit 7f1c114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/xarc-webpack/src/util/dll-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ const verifyVersions = info => {
Object.keys(versions).forEach(pkgDir => {
const pkgInfo = versions[pkgDir];
const modName = pkgInfo.name;
const pkgNmDir = Path.posix.join("node_modules", pkgDir);
const pkgNmDir = Path.dirname(require.resolve(`${modName}/package.json`));
let pkg;
try {
pkg = requireAt(Path.resolve(pkgNmDir), "./package.json");
pkg = requireAt(pkgNmDir, "./package.json");
} catch (err) {
logger.info(
"Electrode DLL module",
Expand Down

0 comments on commit 7f1c114

Please sign in to comment.