Skip to content

Commit

Permalink
[BUGFIX beta] Include missing sourcemaps in vendorTree
Browse files Browse the repository at this point in the history
Fixes #15464
  • Loading branch information
simonihmig committed Aug 10, 2017
1 parent 5ba5769 commit 458880b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,18 @@ module.exports = {
'ember.debug.js',
'ember.min.js',
'ember.prod.js'
].filter(function(file) {
var fullPath = path.join(__dirname, 'dist', file);
]
.map(function(file) {
return [file, file.replace('.js', '.map')];
})
.reduce(function(flat, jsAndMap) {
return flat.concat(jsAndMap);
}, [])
.filter(function(file) {
var fullPath = path.join(__dirname, 'dist', file);

return fs.existsSync(fullPath);
});
return fs.existsSync(fullPath);
});

var ember = new Funnel(__dirname + '/dist', {
destDir: 'ember',
Expand Down

0 comments on commit 458880b

Please sign in to comment.