From 2f9db62e1ca98cf9dd05e9b4fe4d7a9b94e6f917 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 5 Mar 2024 11:34:51 +0000 Subject: [PATCH] DEV: Skip babel for qunit and sinon (#26028) Skipping babel for qunit is part of the default embroider blueprint. Adding these doesn't seem to have a measurable effect on build time, but it does stop this message from being printed in the build log: ``` The code generator has deoptimised the styling of /Users/david/discourse/discourse/node_modules/sinon/pkg/sinon-esm.js as it exceeds the max of 500KB ``` --- app/assets/javascripts/discourse/ember-cli-build.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/javascripts/discourse/ember-cli-build.js b/app/assets/javascripts/discourse/ember-cli-build.js index b42e8f71501..34fdaaae267 100644 --- a/app/assets/javascripts/discourse/ember-cli-build.js +++ b/app/assets/javascripts/discourse/ember-cli-build.js @@ -228,6 +228,14 @@ module.exports = function (defaults) { ], }, }, + skipBabel: [ + { + package: "qunit", + }, + { + package: "sinon", + }, + ], }); return mergeTrees([appTree, mergeTrees(extraPublicTrees)]);