modifications: {
babelSetup?: TransformationModifier<babel.Configuration>,
} = {}
While examining some code in a React project, I came across the above snippet that is passed as an argument to a function. As far as I can tell, the modifications
parameter is an object with one key-value pair. The presence of ?
indicates that babelSetup
is an optional property, which is strange since it's the only entry. But what does the = {}
signify at the end of the code?