Skip to content

Commit

Permalink
remove swc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexasselin008 committed Nov 19, 2024
1 parent bb679df commit da0ee83
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin";
import type { StorybookConfig } from "@storybook/react-webpack5";
import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin";
import type { Options } from "@storybook/types";
import type { Options as SwcOptions } from "@swc/core";
import { includeDocs, includeChromatic } from "./env.ts";
import { swcConfig as SwcBuildConfig } from "./swc.build.ts";
import { swcConfig as SwcDevConfig } from "./swc.dev.ts";

// We sometimes need to disable the lazyCompilation to properly run the test runner on stories
const isLazyCompilation = !(process.env.STORYBOOK_NO_LAZY === "true");
Expand Down Expand Up @@ -71,9 +67,6 @@ const storybookConfig: StorybookConfig = {
docs: {
autodocs: "tag"
},
swc: (_: SwcOptions, { configType }: Options): SwcOptions => {
return configType === "PRODUCTION" ? SwcBuildConfig : SwcDevConfig;
},
webpackFinal(config, { configType }) {
config.resolve = {
...config.resolve,
Expand Down

0 comments on commit da0ee83

Please sign in to comment.