Skip to content

Commit

Permalink
fix(webpack): fix babel config path resolution
Browse files Browse the repository at this point in the history
closed #18404
  • Loading branch information
juristr committed Aug 1, 2023
1 parent cd6c8d3 commit b8a6621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/webpack/src/utils/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ export function createLoaderFromCompiler(
babelConfig.options['rootMode'] = 'upward';
babelConfig.options['babelrc'] = true;
} else {
babelConfig.options['configFile'] =
babelConfig.options?.['babelConfig'] ??
path.join(options.root, options.projectRoot, '.babelrc');
babelConfig.options['configFile'] = options.babelConfig
? path.join(options.root, options.babelConfig)
: path.join(options.root, options.projectRoot, '.babelrc');
}

return babelConfig;
Expand Down

1 comment on commit b8a6621

@vercel
Copy link

@vercel vercel bot commented on b8a6621 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.