-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from osstotalsoft/feature/upgradePackages
upgrade packages and revert to webpack
- Loading branch information
Showing
12 changed files
with
4,203 additions
and
5,982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
import { dirname, join } from 'path' | ||
import type { StorybookConfig } from 'storybook-react-rsbuild' | ||
import { dirname, join } from "path"; | ||
import type { StorybookConfig } from '@storybook/react-webpack5' | ||
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin' | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
getAbsolutePath('@storybook/addon-essentials'), | ||
getAbsolutePath('@storybook/addon-links'), | ||
getAbsolutePath('@storybook/addon-interactions'), | ||
getAbsolutePath('@storybook/preview-api') | ||
getAbsolutePath("@storybook/addon-essentials"), | ||
getAbsolutePath("@storybook/addon-links"), | ||
getAbsolutePath("@storybook/addon-interactions"), | ||
getAbsolutePath("@storybook/preview-api"), | ||
getAbsolutePath("@storybook/addon-webpack5-compiler-swc"), | ||
], | ||
staticDirs: ['../public'], | ||
framework: 'storybook-react-rsbuild', | ||
framework: { | ||
name: getAbsolutePath('@storybook/react-webpack5'), | ||
options: {} | ||
}, | ||
core:{ | ||
builder:"@storybook/builder-webpack5" | ||
}, | ||
typescript: { | ||
reactDocgen: 'react-docgen', | ||
check: false | ||
} | ||
}, | ||
webpackFinal: async (config: any) => { | ||
config.resolve.plugins = [new TsconfigPathsPlugin()] | ||
return config | ||
}, | ||
} | ||
export default config | ||
|
||
function getAbsolutePath(value: string): any { | ||
return dirname(require.resolve(join(value, 'package.json'))) | ||
} | ||
return dirname(require.resolve(join(value, "package.json"))); | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
yarnPath: .yarn/releases/yarn-4.3.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.5.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.