diff --git a/components/system/components/StatCard.js b/components/system/components/StatCard.js index ef2c3667..e9c02857 100644 --- a/components/system/components/StatCard.js +++ b/components/system/components/StatCard.js @@ -4,7 +4,7 @@ import * as React from "react"; import * as Constants from "~/common/constants"; import * as Strings from "~/common/strings"; -import { css } from "@emotion/react"; +import { css } from "@emotion/core"; import { LineChart } from "~/vendor/react-chartkick"; import "chart.js"; diff --git a/rollup.config.js b/rollup.config.js index 8c5bfe35..e8cf5d44 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -13,7 +13,7 @@ const generateOutput = (outputPath) => { file: outputPath, format: "cjs", }, - external: ["@emotion/react", "react", "react-dom"], + external: ["react", "react-dom"], plugins: [ json({ exclude: ["node_modules/**"], compact: true }), babel({ @@ -45,4 +45,7 @@ const generateOutput = (outputPath) => { }; }; -export default [generateOutput("dist/index.js"), generateOutput("../slate-react-system/src/index.js")]; +export default [ + generateOutput("dist/index.js"), + generateOutput("../slate-react-system/src/index.js"), +];