Enigmatic-Smile / serverless-plugin-optimize

⛔️ DEPRECATED ⛔️ Bundle with Browserify, transpile and minify with Babel automatically to your NodeJS runtime compatible JavaScript

Home Page:https://www.npmjs.com/package/serverless-plugin-optimize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hard to Debug Errors

srchulo opened this issue · comments

Because the code is optimized and put together, it's hard to debug locally when there are errors because it doesn't really say what file the issue is in. Is there an easier way to debug for errors?

"errorMessage": "Cannot read property 'identity' of undefined",
    "errorType": "TypeError",
    "stackTrace": [
        "TypeError: Cannot read property 'identity' of undefined",
        "    at /home/user/documents/github/myapp/myapi/services/myservice/_optimize/my-api-dev-getSites/src/sites.js:2:1563",

I've put in a PR for this issue. It enables source maps: #114

Please comment on my PR if you want this feature.