Skip to content

Commit

Permalink
Update packages/babel-core/src/config/item.js
Browse files Browse the repository at this point in the history
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
  • Loading branch information
nicolo-ribaudo and JLHwung committed Nov 9, 2020
1 parent 5519138 commit ff9dd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-core/src/config/item.js
Expand Up @@ -40,7 +40,7 @@ export function createConfigItem(
}

export function getItemDescriptor(item: mixed): UnloadedDescriptor | void {
if (item && item[Symbol.for("@babel/core@7 - ConfigItem")] === true) {
if (item?.[Symbol.for("@babel/core@7 - ConfigItem")] === true) {
return item._descriptor;
}

Expand Down

0 comments on commit ff9dd23

Please sign in to comment.