diff --git a/packages/babel-plugin-transform-computed-properties/src/index.js b/packages/babel-plugin-transform-computed-properties/src/index.js index 5f80fa8db258..4f33dd8cf726 100644 --- a/packages/babel-plugin-transform-computed-properties/src/index.js +++ b/packages/babel-plugin-transform-computed-properties/src/index.js @@ -5,7 +5,7 @@ export default declare((api, options) => { api.assertVersion(7); const setComputedProperties = - options.loose || api.assumption?.("setComputedProperties"); + api.assumption("setComputedProperties") ?? options.loose; const pushComputedProps = setComputedProperties ? pushComputedPropsLoose