From de1c1d4e7e725219a74c13938e76ef63a879ef7a Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Mon, 4 Apr 2022 14:53:55 +1000 Subject: [PATCH] Fix build issues --- packages/components/.storybook/main.js | 2 +- packages/components/src/SquigglePlayground.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/.storybook/main.js b/packages/components/.storybook/main.js index 60f2ee5d..7be66cf0 100644 --- a/packages/components/.storybook/main.js +++ b/packages/components/.storybook/main.js @@ -4,7 +4,7 @@ const custom = require('../webpack.config.js'); module.exports = { webpackFinal: async (config) => { config.resolve.alias = custom.resolve.alias; - return { ...config, module: { ...config.module, rules: config.module.rules.concat(custom.module.rules) } }; + return { ...config, module: { ...config.module, rules: config.module.rules.concat(custom.module.rules.filter(x => x.loader === "ts-loader")) } }; }, "stories": [ "../src/**/*.stories.mdx", diff --git a/packages/components/src/SquigglePlayground.tsx b/packages/components/src/SquigglePlayground.tsx index fd8eb488..df3d4734 100644 --- a/packages/components/src/SquigglePlayground.tsx +++ b/packages/components/src/SquigglePlayground.tsx @@ -3,7 +3,7 @@ import ReactDOM from "react-dom" import { SquiggleChart } from "./SquiggleChart" import CodeEditor from "./CodeEditor" import { Form, Input, Card, Row, Col } from "antd" -import 'antd/dist/antd.min.css'; +import 'antd/dist/antd.css'; interface FieldFloatProps { label : string,