Plugins: Expose emotion/react to plugins to prevent load failures (#55297)

This commit is contained in:
Jack Westbrook 2022-09-19 16:54:13 +02:00 committed by GitHub
parent 273ff02dde
commit db17a88193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,