Skip to content

Commit

Permalink
fix(react): fix babel preset for web to support undefined caller (nrw…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Sep 9, 2020
1 parent 6bc63d5 commit e4485d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module.exports = function (api: any, options: {}) {
api.assertVersion(7);

const isModern = api.caller((caller) => caller.isModern);
const isModern = api.caller((caller) => caller?.isModern);

return {
presets: [
Expand Down

0 comments on commit e4485d4

Please sign in to comment.