standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 147 forks source link

Add support for conditional chaining #918

Open kristoferjoseph opened 1 year ago

kristoferjoseph commented 1 year ago

Using conditional chaining const foo = bar?.baz || '' causes syntaz error.

niron1 commented 1 year ago

this was addressed in earlier tickets and was resolved by forks i.e. add change this in your package.json

    "esm": "https://github.com/jsg2021/esm/releases/download/v3.x.x-pr883/esm-3.x.x-pr883.tgz",

or just move to a new published fork altogether and use command line node -r esm-wallaby index.js

    "esm-wallaby": "^3.2.26",