bugsnag / webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
MIT License
32 stars 29 forks source link

publicPath field doesn't work for AWS Lambda + webpack + bugsnag #42

Closed Jwalin-Thaker closed 4 years ago

Jwalin-Thaker commented 4 years ago

Tried all the combination of wildcards and file entries, the source map does get uploaded, but it is an incorrect one. Cause it does not trace back to the original source code and just shows the minified weback version instead.

My webpack config (in parts) is as follows:

new BugsnagSourceMapUploaderPlugin({
            apiKey: bugsnagApiKey,
            overwrite: true,
            publicPath: 'dist/email-notifications/src/'
          }),
devtool: 'source-map',
    output: {
      path: join(__dirname, '/dist/email-notifications/src/'),
      filename: 'index.js'
    },

My folder structure is as follows:

- email-notifications
   - src (has the source code on which webpack works)
       - index.js
       - other folders (with functions called from index.js)
   - dist
       - email-notifications
           - index.js
           - index.js.map

My lambda bundle consists of just the dist/email-notifications/index.js file

abigailbramble commented 4 years ago

Hi @Jwalin-Thaker Can you please write into support@bugsnag.com with a link to an example of an error which is not symbolicating as you expect?

abigailbramble commented 4 years ago

Closing as we have not heard back. If you have any further questions, please get in touch.