From 8806b8fc1b4bd4fa1b957b542970ac9ea02f75b4 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:36:36 -0400 Subject: [PATCH] Plugins: Expose emotion/react to plugins to prevent load failures (#55297) (#55398) (cherry picked from commit db17a881932934ece4acab0ca9066fdc53385109) Co-authored-by: Jack Westbrook --- public/app/features/plugins/plugin_loader.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/plugins/plugin_loader.ts b/public/app/features/plugins/plugin_loader.ts index 429ed34b73a..8641060a762 100644 --- a/public/app/features/plugins/plugin_loader.ts +++ b/public/app/features/plugins/plugin_loader.ts @@ -1,4 +1,5 @@ import * as emotion from '@emotion/css'; +import * as emotionReact from '@emotion/react'; import * as d3 from 'd3'; import jquery from 'jquery'; import _ from 'lodash'; // eslint-disable-line lodash/import-scope @@ -94,6 +95,7 @@ exposeToPlugin('react-redux', reactRedux); exposeToPlugin('redux', redux); exposeToPlugin('emotion', emotion); exposeToPlugin('@emotion/css', emotion); +exposeToPlugin('@emotion/react', emotionReact); exposeToPlugin('app/features/dashboard/impression_store', { impressions: impressionSrv,