Skip to content

Commit

Permalink
Merge pull request #15577 from simonihmig/add-sourcemaps-to-vendor
Browse files Browse the repository at this point in the history
[BUGFIX beta] Include missing sourcemaps in vendorTree
  • Loading branch information
rwjblue authored Aug 10, 2017
2 parents 5ba5769 + 458880b commit 2852a94
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 2852a94

Please sign in to comment.