Wavedrom GUI supports IIFE, but wavedrom-cli does not. It would be good to have better compatibility between the 2 tools, to avoid having to convert existing .js files to .json5.
This is the output when trying to convert .js files:
Error:
SyntaxError: JSON5: invalid character '(' at 1:1
at syntaxError (C:\Users\XYZI\Apps_DONT_DELETE\node-v18.15.0-win-x64\node_modules\wavedrom-cli\node_modules\json5\lib\parse.js:1110:17)
Expected result:
IIFE would be evaluated first, then its returned result would be used to create the waveform.