Generate sourcemaps with gulp and gulp-typescript

I’m using Aurelia and Typescript to build my web-app and it minifies the code into two files, app-bundle.js with which contains my source code and vendor-bundle.js with which contains the npm packages. These files are generated using gulp-sourcemaps like this:


.pipe(sourcemaps.write({ sourceRoot: ‘src’ }))”

My typescript files are in src folder in the root project and once transpiled, they are minified and move in the scripts folder which contains the 2 bundle files with their source maps.

Anyone can help in how I can use gulp to generate the sourcemaps for sentry?