From 458880b5ad4d7f5c22e52ca60abbf57b0f208cd2 Mon Sep 17 00:00:00 2001 From: simonihmig Date: Thu, 10 Aug 2017 23:02:37 +0200 Subject: [PATCH] [BUGFIX beta] Include missing sourcemaps in vendorTree Fixes #15464 --- index.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 1775fb35a4a..d86151eb8d0 100644 --- a/index.js +++ b/index.js @@ -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',