From 114a727f0fc07d3ead947a32c9c2f36b929ffa77 Mon Sep 17 00:00:00 2001 From: Hugo Heneault Date: Thu, 22 Feb 2018 14:06:00 +0100 Subject: [PATCH] fix(sourcemaps) copy vendor.js.map --- src/util/source-maps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/source-maps.ts b/src/util/source-maps.ts index 6ecd7113..9dcb1e5c 100644 --- a/src/util/source-maps.ts +++ b/src/util/source-maps.ts @@ -15,7 +15,7 @@ export async function copySourcemaps(context: BuildContext, shouldPurge: boolean // only include js source maps const sourceMaps = fileNames.filter(fileName => fileName.endsWith('.map')); - const toCopy = sourceMaps.filter(fileName => fileName.indexOf('vendor.js') < 0 && fileName.endsWith('.js.map')); + const toCopy = sourceMaps.filter(fileName => fileName.endsWith('.js.map')); const toCopyFullPaths = toCopy.map(fileName => join(context.buildDir, fileName)); const toPurge = sourceMaps.map(sourceMap => join(context.buildDir, sourceMap));