Open moritzraho opened 5 years ago
The problem is with parcel minification as stated by #30
I'm not sure there is enough information here to make this a Parcel issue. Could you look into this more and file an issue on https://github.com/parcel-bundler/parcel with a complete reproduction?
Behaviour
It seems that
aio runtime
truncates the code and this results in a malformed request errorThis also doesn't work with
wskdeploy -m .manifest-dist.yml
andwsk action create myaction dist/actions/hello.js
Steps to Reproduce
$ npm install @adobe/aio-cli-config
const config = require('@adobe/aio-cli-config')
to the top ofactions/hello/index.js
npm run build:actions && npm run deploy:actions
oraio cna deploy -av