This release adds support for call expressions, for example:
{
"plugins": [
{
"transform": "ts-transform-define",
"replace": {
"isNodeEnvironment()": "true"
}
}
]
},
}
With this code:
if (isNodeEnvironment()) {
console.log('hello world');
}
Results in:
if (true) {
console.log('hello world');
}