From 8b2009cd444e7eeb28fd997c23a47c395daddd70 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 2 Sep 2024 10:07:43 +0100 Subject: [PATCH] DEV: Skip babel for ace-builds and json-editor (#28659) This will avoid warnings: "The code generator has deoptimised the styling of {path} as it exceeds the max of 500KB." Should also provide a tiny improvement in build times --- app/assets/javascripts/discourse/ember-cli-build.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/discourse/ember-cli-build.js b/app/assets/javascripts/discourse/ember-cli-build.js index 762fc84e8ec..e9d6f0f40c2 100644 --- a/app/assets/javascripts/discourse/ember-cli-build.js +++ b/app/assets/javascripts/discourse/ember-cli-build.js @@ -233,6 +233,12 @@ module.exports = function (defaults) { { package: "sinon", }, + { + package: "@json-editor/json-editor", + }, + { + package: "ace-builds", + }, ], });