From 40b9dac0dcbaeb25f745c09e35a8077ba0e0dd4b Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 19 Sep 2022 11:37:02 -0400 Subject: [PATCH] Plugins: Expose emotion/react to plugins to prevent load failures (#55297) (#55399) (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 d3685cab5d2..91e0b3fc008 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 @@ -93,6 +94,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,