Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏗✨ Add --full_sourcemaps, a gulp dist flag to include source code in sourcemaps #21951

Merged
merged 1 commit into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions build-system/tasks/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ function compile(entryModuleFilenames, outputDir, outputFilename, options) {
// required.
only_closure_dependencies: true,
output_wrapper: wrapper,
source_map_include_content: !!argv.full_sourcemaps,
source_map_location_mapping: '|' + sourceMapBase,
warning_level: options.verboseLogging ? 'VERBOSE' : 'DEFAULT',
jscomp_error: [],
Expand Down
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,7 @@ gulp.task('dist', 'Build production binaries', maybeUpdatePackages, dist, {
noextensions: ' Builds with no extensions.',
single_pass_dest: ' The directory closure compiler will write out to ' +
'with --single_pass mode. The default directory is `dist`',
full_sourcemaps: ' Includes source code content in sourcemaps',
},
});
gulp.task('watch', 'Watches for changes in files, re-builds when detected',
Expand Down