ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
863 stars 125 forks source link

Miscompilation in version 0.35.19: transformCondition is not defined #222

Closed jpdutoit closed 1 year ago

jpdutoit commented 1 year ago

Under some conditions babel errors out with this error:

transformCondition is not defined
npm ERR!     at /project/node_modules/babel-plugin-jsx-dom-expressions/index.js:2655:84

Looking at the latest published code for this package, it seems there is a miscompilation: https://www.npmjs.com/package/babel-plugin-jsx-dom-expressions/v/0.35.19?activeTab=code

on line 431: function transformCondition$1(path, inline, deep) on line 2656: transformCondition(attribute.get("value").get("expression")

Looks to be the same in 0.36.0-beta.6