Describe the bug
Eel cannot parse arrow functions such as:
const funcName = (funcParam) => {console.log(funcParam)} window.eel.expose(funcName, 'funcName')
after running npm run build and then python main.py.
but when rephrased to
function funcName(funcParam) { console.log(funcParam)} window.eel.expose(funcName, 'funcName')
everything works fine.
To Reproduce
Use CRA template (example/07)
write an arrow function
call it from python
npm run build
python YOUR_MAIN_FILE.py
Expected behavior
both function styles should be parsed all the same
Eel version 0.16.0
Describe the bug Eel cannot parse arrow functions such as:
const funcName = (funcParam) => {console.log(funcParam)} window.eel.expose(funcName, 'funcName')
after runningnpm run build
and thenpython main.py
. but when rephrased tofunction funcName(funcParam) { console.log(funcParam)} window.eel.expose(funcName, 'funcName')
everything works fine.To Reproduce
npm run build
python YOUR_MAIN_FILE.py
Expected behavior both function styles should be parsed all the same
System Information
Screenshots
Additional context