Skip to content

Commit

Permalink
add missing dirname to require.resolve calls
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 13, 2024
1 parent 87bf8f0 commit c64041e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ export const viteFinal = async (config: any, options: Options) => {
* The following aliases are used to ensure a single instance of these packages are used in situations where they are duplicated
* The packages will be duplicated by the package manager when the user has react installed with another version than 18.2.0
*/
'@storybook/theming': require.resolve('@storybook/theming'),
'@storybook/components': require.resolve('@storybook/components'),
'@storybook/blocks': require.resolve('@storybook/blocks'),
'@storybook/theming': dirname(require.resolve('@storybook/theming')),
'@storybook/components': dirname(require.resolve('@storybook/components')),
'@storybook/blocks': dirname(require.resolve('@storybook/blocks')),
},
},
}),
Expand Down

0 comments on commit c64041e

Please sign in to comment.