Skip to content

Commit

Permalink
[BUGFIX release] Remove sourceMappingURL for dag-map.
Browse files Browse the repository at this point in the history
Babel is not properly ingesting the sourcemaps (even when the upstream
funnel brings the mapping file in with it), this commit strips it out to
avoid errors during uglification (reported in
ember-cli/ember-cli-terser#29).
  • Loading branch information
rwjblue authored and toddjordan committed Oct 13, 2017
1 parent e4cd754 commit 835e9df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion broccoli/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,19 @@ module.exports.backburnerES = function _backburnerES() {
}

module.exports.dagES = function _dagES() {
return funnelLib('dag-map', {
let lib = funnelLib('dag-map', {
files: ['dag-map.js'],
annotation: 'dag-map es'
});

return new StringReplace(lib, {
files: ['dag-map.js'],
patterns: [{
match: /\/\/# sourceMappingURL=dag-map.js.map/g,
replacement: ''
}],
annotation: 'remove sourcemap annotation (dag-map)'
});
}

module.exports.routeRecognizerES = function _routeRecognizerES() {
Expand Down

0 comments on commit 835e9df

Please sign in to comment.