Skip to content

Commit

Permalink
fix babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
dilanx committed Jul 1, 2022
1 parent 369dead commit 29f9a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@craco/craco",
"description": "Create React App Configuration Override, an easy and comprehensible configuration layer for create-react-app.",
"version": "7.0.0-alpha.6",
"version": "7.0.0-alpha.7",
"scripts": {
"prepublishOnly": "tsc",
"test": "jest"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/features/webpack/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ function applyLoaderOptions(

function overrideLoader(
match: CompleteLoader,
babelConfig: CracoBabelConfig,
cracoConfig: CracoConfig,
context: BaseContext
) {
const { presets, plugins, loaderOptions } = babelConfig;
const { presets, plugins, loaderOptions } = cracoConfig.babel ?? {};

if (presets) {
addPresets(match.loader, presets);
Expand Down

0 comments on commit 29f9a95

Please sign in to comment.