Skip to content

Commit

Permalink
add proper alias for components/experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Aug 1, 2023
1 parent 681cd17 commit 1b6eb11
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const getAbsolutePath = <I extends string>(input: I): I =>
dirname(require.resolve(join(input, 'package.json'))) as any;

const storybookPaths: Record<string, string> = {
// this is a temporary hack to get webpack to alias this correctly
[`@storybook/components/experimental`]: `${getAbsolutePath(
`@storybook/components`
)}/dist/experimental`,
...[
// these packages are not pre-bundled because of react dependencies
'components',
Expand Down

0 comments on commit 1b6eb11

Please sign in to comment.