Skip to content

Commit

Permalink
update razzle.extend
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed May 24, 2022
1 parent 74bd106 commit bf97935
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions razzle.extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const pkgs = ['@eeacms/search'];

const modify = (config, { target, dev }, webpack) => {
const projectRootPath = path.resolve('.');
return config;
const jsConfig = require(`${projectRootPath}/jsconfig.json`);
const searchlibConf = jsConfig.compilerOptions.paths.searchlib;
if (!searchlibConf) return config;
Expand Down

0 comments on commit bf97935

Please sign in to comment.