From 78b1d130a97575c74d94729e3f72c5ad10cf80dc Mon Sep 17 00:00:00 2001 From: Chris Raible Date: Wed, 8 Nov 2023 15:15:11 -0800 Subject: [PATCH] Fixed admin sourcemap fingerprinting for chunk files (#18920) no issue - The fingerprinting on chunk files was happening twice (once by ember and once by webpack), resulting in the .js file and the .map file not matching - This change prevents ember from fingerprinting the chunk.*.map files, so the resulting .map and .js files will have the same basename - No real functional difference here, just a bit easier to find the corresponding .map file for a given .js file --- ghost/admin/ember-cli-build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin/ember-cli-build.js b/ghost/admin/ember-cli-build.js index bcb64a4283..4455adba64 100644 --- a/ghost/admin/ember-cli-build.js +++ b/ghost/admin/ember-cli-build.js @@ -121,7 +121,8 @@ module.exports = function (defaults) { 'woff2', 'mp4', 'ico' - ] + ], + exclude: ['**/chunk*.map'] }, minifyJS: { options: {