Skip to content

Commit

Permalink
fix(flat-components): start storybook failed (#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Dec 30, 2023
1 parent b717bfd commit c88560e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/flat-components/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require("path");
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const ESLintPlugin = require("eslint-webpack-plugin");
const { DefinePlugin } = require("webpack");

module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
Expand All @@ -15,6 +16,9 @@ module.exports = {
},
webpackFinal: config => {
config.plugins.push(
new DefinePlugin({
"process.env.FLAT_REGION": '"CN"',
}),
new ESLintPlugin({
fix: true,
extensions: ["ts", "tsx"],
Expand Down
2 changes: 1 addition & 1 deletion packages/flat-components/src/theme/theme.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./colors.less";
import { useIsomorphicLayoutEffect } from "react-use";

const storyMeta: Meta = {
title: "Theme/Colors",
title: "Theme/Theme",
parameters: {
options: {
showPanel: false,
Expand Down

0 comments on commit c88560e

Please sign in to comment.