question:
using @ sentry/webpack-plugin plug-in to upload sourceMap, the source file is uploaded successfully, but the exception result still cannot be mapped to the source file
configuration code:
//webpack.prod.conf.js
const SentryPlugin = require("@sentry/webpack-plugin");
new SentryPlugin({
release: process.env.RELEASE_VERSION,
include: path.join(__dirname,"../dist/static/js/"),
ignore: ["node_modules", "webpack.config.js"],
urlPrefix : "~/static/js""
}),
sentry is a self-built server
after executing the following code, the effect is as follows
node build/build.js