upgrading to react-script 3.3.1 breaks optional chaining
Created by: ggascoigne
Since upgrading to react-scripts 3.3.1 my code, which uses optional chaining, fails to compile.
Module parse failed: Unexpected token (22:12)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/eslint-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| // library barfs if you have an undefined value here instead of an empty array
|
> if (props?.SelectProps?.multiple && field.value === undefined) {
| field.value = [];