diff --git a/packages/babel-helper-create-class-features-plugin/src/fields.js b/packages/babel-helper-create-class-features-plugin/src/fields.js index 6955f8b488dc..502d416ef030 100644 --- a/packages/babel-helper-create-class-features-plugin/src/fields.js +++ b/packages/babel-helper-create-class-features-plugin/src/fields.js @@ -366,7 +366,7 @@ export function transformPrivateNamesUsage( ref, path, privateNamesMap, - privateFieldsAsProperties, + { privateFieldsAsProperties }, state, ) { if (!privateNamesMap.size) return; diff --git a/packages/babel-helper-create-class-features-plugin/src/index.js b/packages/babel-helper-create-class-features-plugin/src/index.js index 83b03faf3ba9..08afb3cc37c0 100644 --- a/packages/babel-helper-create-class-features-plugin/src/index.js +++ b/packages/babel-helper-create-class-features-plugin/src/index.js @@ -189,7 +189,7 @@ export function createClassFeaturePlugin({ ref, path, privateNamesMap, - privateFieldsAsProperties ?? loose, + { privateFieldsAsProperties: privateFieldsAsProperties ?? loose }, state, );