Skip to content

Commit

Permalink
NextJS: Support path aliases when no base url is set
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Mar 26, 2024
1 parent de173e8 commit d80b2fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/frameworks/nextjs/src/imports/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const configureImports = ({
}): void => {
const configLoadResult = loadConfig(configDir);

if (configLoadResult.resultType === 'failed' || !configLoadResult.baseUrl) {
// either not a typescript project or tsconfig contains no baseUrl
if (configLoadResult.resultType === 'failed') {
// either not a typescript project or tsconfig is not found - we bail
return;
}

Expand Down

0 comments on commit d80b2fb

Please sign in to comment.