diff --git a/scripts/gulpfiles/build_tasks.js b/scripts/gulpfiles/build_tasks.js index 64a402a1c..1a9cbc74a 100644 --- a/scripts/gulpfiles/build_tasks.js +++ b/scripts/gulpfiles/build_tasks.js @@ -560,7 +560,7 @@ function getChunkOptions() { // Figure out which chunk this is by looking for one of the // known chunk entrypoints in chunkFiles. N.B.: O(n*m). :-( const chunk = chunks.find( - chunk => chunkFiles.find(f => f.endsWith('/' + chunk.entry))); + chunk => chunkFiles.find(f => f.endsWith(path.sep + chunk.entry))); if (!chunk) throw new Error('Unable to identify chunk'); // Replace nicknames with the names we chose.