diff --git a/package.json b/package.json index d12f3c8f0..b57a82b8a 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,9 @@ ], "transform": { "^.+\\.jsx?$": "/jest-preprocess.js" + }, + "moduleNameMapper": { + "@theme-ui/css/dist/types": "@theme-ui/css/src/types" } }, "husky": { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index ba54e552b..cd8be941c 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -10,6 +10,7 @@ import { version as __EMOTION_VERSION__ } from '@emotion/core/package.json' import './react-jsx' +export * from '@theme-ui/css/dist/types' export * from './types' const getCSS = (props) => {