Eel
Eel copied to clipboard
Eel unable to parse arrow functions when running after npm run build
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 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 buildpython YOUR_MAIN_FILE.py
Expected behavior both function styles should be parsed all the same
System Information
- OS: Windows 10 x64
- Python Distribution: 3.11