Skip to content

Commit

Permalink
add a require.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Aug 24, 2023
1 parent dfe41f7 commit 06c554e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function webpack(
skipCsf: true,
...mdxPluginOptions,
mdxCompileOptions: {
providerImportSource: '@storybook/addon-docs/mdx-react-shim',
providerImportSource: require.resolve('@storybook/addon-docs/dist/shims/mdx-react-shim'),
...mdxPluginOptions.mdxCompileOptions,
remarkPlugins: [remarkSlug, remarkExternalLinks].concat(
mdxPluginOptions?.mdxCompileOptions?.remarkPlugins ?? []
Expand Down

0 comments on commit 06c554e

Please sign in to comment.