Skip to content

Commit

Permalink
STRWEB-69: Check if @folio/stripes path exists before loading it (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuklis authored Mar 22, 2023
1 parent c59da7d commit 2e63914
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webpack/module-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,14 @@ function getModulesPaths(modules) {
*/
function getStripesModulesPaths() {
const packageJsonPath = locatePackageJsonPath('@folio/stripes');
const packageJson = require(packageJsonPath);
const paths = [];

if (!packageJsonPath) {
return paths;
}

const packageJson = require(packageJsonPath);

if (!packageJson) {
return paths;
}
Expand Down

0 comments on commit 2e63914

Please sign in to comment.