cleanup: updates some loose ends in rollup and StatCard

This commit is contained in:
@wwwjim 2020-11-04 10:00:15 -08:00
parent 317e6eaad6
commit 359c07e9cf
2 changed files with 6 additions and 3 deletions

View File

@ -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";

View File

@ -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"),
];