Skip to content

Commit 29f9a95

Browse files
committed
fix babel config
1 parent 369dead commit 29f9a95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@craco/craco",
33
"description": "Create React App Configuration Override, an easy and comprehensible configuration layer for create-react-app.",
4-
"version": "7.0.0-alpha.6",
4+
"version": "7.0.0-alpha.7",
55
"scripts": {
66
"prepublishOnly": "tsc",
77
"test": "jest"

src/lib/features/webpack/babel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ function applyLoaderOptions(
8282

8383
function overrideLoader(
8484
match: CompleteLoader,
85-
babelConfig: CracoBabelConfig,
85+
cracoConfig: CracoConfig,
8686
context: BaseContext
8787
) {
88-
const { presets, plugins, loaderOptions } = babelConfig;
88+
const { presets, plugins, loaderOptions } = cracoConfig.babel ?? {};
8989

9090
if (presets) {
9191
addPresets(match.loader, presets);

0 commit comments

Comments
 (0)