Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Eel unable to parse arrow functions when running after npm run build

Open honkwansin opened this issue 2 years ago • 0 comments

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

  1. Use CRA template (example/07)
  2. write an arrow function
  3. call it from python
  4. npm run build
  5. python 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

Screenshots

Additional context

honkwansin avatar Mar 11 '23 15:03 honkwansin