diff --git a/app/assets/javascripts/bootstrap-json/index.js b/app/assets/javascripts/bootstrap-json/index.js index f4aee92f832..bc27cac3739 100644 --- a/app/assets/javascripts/bootstrap-json/index.js +++ b/app/assets/javascripts/bootstrap-json/index.js @@ -38,6 +38,12 @@ function updateScriptReferences({ if (!chunks) { if (distAssets.has(`${entrypointName}.js`)) { chunks = [`assets/${entrypointName}.js`]; + } else if (entrypointName === "vendor") { + // support embroider-fingerprinted vendor when running with `-prod` flag + const vendorFilename = [...distAssets].find((key) => + key.startsWith("vendor.") + ); + chunks = [`assets/${vendorFilename}`]; } else { // Not an ember-cli asset, do not rewrite return;