UNPKG

@emotion/server

Version:

Extract and inline critical css with emotion for server side rendering.

15 lines (12 loc) 763 B
import createEmotionServer from '../create-instance/dist/emotion-server-create-instance.browser.esm.js'; import { cache } from '@emotion/css'; import 'through'; import 'html-tokenize'; import 'multipipe'; var _createEmotionServer = createEmotionServer(cache), extractCritical = _createEmotionServer.extractCritical, extractCriticalToChunks = _createEmotionServer.extractCriticalToChunks, renderStylesToString = _createEmotionServer.renderStylesToString, renderStylesToNodeStream = _createEmotionServer.renderStylesToNodeStream, constructStyleTagsFromChunks = _createEmotionServer.constructStyleTagsFromChunks; export { constructStyleTagsFromChunks, extractCritical, extractCriticalToChunks, renderStylesToNodeStream, renderStylesToString };