gulpjs / gulpjs/gulp

Option to disable loading of existing source maps for the source

Open
#2,409 2 comments 1 reaction 0 assignees View on GitHub
enhancement further investigation required
Dominant language
JavaScript
Stars
32.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

The old `gulp-sourcemaps` had a `loadMaps` setting to control whether existing maps should be loaded. Gulp 4 has a single setting in `gulp.src` which controls *both* enabling sourcemaps and loading existing ones.

This cause issues for me when npm packages ship their bundle files with a sourcemap while they don't ship their original source code at the same time (and so they have sourcemaps pointing to non-existent files). For such cases, I'd rather have my own source maps point me to their bundle file (that I know about) rather than to their source code (that I don't know about).
I would be great if this feature could be available again.

**What version of gulp are you using?**
4.0.2

**What versions of npm and node are you using?**
node 12.14.1
yarn 1.21.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.