From 3ae4a618429c87fc002e512e5a2504af382325fd Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Thu, 1 Jun 2023 13:27:38 +0100 Subject: [PATCH] fix(build): Fix path issue on Windows (#7127) Fixes #6864. --- scripts/gulpfiles/build_tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.