-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
backlogWe hope to fix this feature/bug in the futureWe hope to fix this feature/bug in the futurefeature requestRequest for a new featureRequest for a new feature
Description
Hi team,
We are using Bugsnag in our React app built by webpack. In order to get more readable stacktrace, I'd like to upload source map when building it. However, it is deployed as a different file name from generated by webpack. (eg. app.js
-> app.[digest].js
)
Currently, minifiedUrl
is automatically determined from publicUrl
and file name, but I'd like to specify minifiedUrl
directly with wildcards. For example:
const { BugsnagSourceMapUploaderPlugin } = require('webpack-bugsnag-plugins')
module.exports = {
entry: './app.js',
devtool: 'source-map',
output: {
path: __dirname,
filename: './bundle.js',
publicPath: 'https://your-app.xyz/assets/'
},
plugins: [].concat(
// It's a good idea to only run this plugin when you're building a bundle
// that will be released, rather than for every development build
isDistEnv
? new BugsnagSourceMapUploaderPlugin({
apiKey: 'YOUR_API_KEY',
appVersion: '1.2.3',
minifiedUrl: 'https://your-app.xyz/assets/bundle.*.js'
})
: []
)
}
WDYT?
Metadata
Metadata
Assignees
Labels
backlogWe hope to fix this feature/bug in the futureWe hope to fix this feature/bug in the futurefeature requestRequest for a new featureRequest for a new feature