Provide @emotion/css to plugins

Summary: Changelog: Provide `emotion/css` to plugins

Reviewed By: antonk52

Differential Revision: D40057817

fbshipit-source-id: 1e931eb8527d62dd4312556a6d493fdf3e17b45a
This commit is contained in:
Andrey Goncharov
2022-10-04 05:07:36 -07:00
committed by Facebook GitHub Bot
parent 10189a2c3f
commit 9597e672a1
6 changed files with 18 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ import {initializeRenderHost} from './initializeRenderHost';
import * as React from './globalsReplacements/fakeReact';
import * as ReactDOM from './globalsReplacements/fakeReactDOM';
import {styled} from './globalsReplacements/fakeEmotionStyled';
import * as emotionCss from './globalsReplacements/fakeEmotionCss';
import * as legacyExports from './globalsReplacements/fakeLegacyExports';
import Module from 'module';
@@ -38,6 +39,7 @@ export const initCompanionEnv = async (
Immer,
antd: {},
emotion_styled: {default: styled},
emotion_css: emotionCss,
antdesign_icons: {},
ReactJsxRuntime: {},
});