From 21cc57674ce955bdbb08a2e1232b9d80c772dc71 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 14 Mar 2022 16:11:13 +0000 Subject: [PATCH] FIX: Do not run Ember CLI chunk files through babel twice (#16183) --- lib/tasks/assets.rake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 3c580944bbb..24eac30fda3 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -95,7 +95,14 @@ end def is_ember_cli_asset?(name) return false if !EMBER_CLI - %w(application.js admin.js ember_jquery.js pretty-text-bundle.js start-discourse.js vendor.js).include?(name) + %w( + application.js + admin.js + ember_jquery.js + pretty-text-bundle.js + start-discourse.js + vendor.js + ).include?(name) || name.start_with?("chunk.") end def assets_path