Closed 12932 closed 4 years ago
The best way to change the python path used by transcrypt-loader is to edit webpack.config.js. I've updated this repo's webpack.config.js to explicitly include the default python3 command, you would need to edit it to the appropriate path on your system (just python -m transcrypt
works for me, but ymmv on your python install) .
The issue with targetindex.js is a known issue with transcrypt-loader, with a workaround here https://github.com/QQuick/Transcrypt/issues/624#issuecomment-507866238
I'd prefer to see if we can get this fixed appropriately upstream before forking transcrypt-loader, so have linked that workaround from this project's readme for now.
I've tested this working on Windows 10 once webpack.config.js
and ./node_modules/transcrypt-loader/__target_es5__/index.js
are edited appropriately.
I managed to bypass https://github.com/cloudflare/python-worker-hello-world/issues/1 by deleting the fake Windows 10 python3 (that redirects to Windows Store), and making a copy of python.exe as python3.exe (dirty hack)
However,
wrangler publish
seems to be failing still