Source maps are now included in the @inboxsdk/core
npm package to help debugging into InboxSDK source code.
If you're using webpack, then to benefit from the included sourcemaps you may need to configure it to use source-map-loader by adding it as a dependency (npm i -D source-map-loader
) and then adding configuration like this to your webpack config:
module.exports = {
+ module: {
+ rules: [
+ {
+ test: /\.m?jsx?$/,
+ enforce: "pre",
+ use: ["source-map-loader"],
+ }
+ ]
+ },
The example InboxSDK extension has been updated like this to make use of the included sourcemaps.