Skip to content

Commit

Permalink
fix providerImportSource extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bashmish committed Apr 17, 2024
1 parent 38afbe6 commit 331da20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/addons/docs/src/plugins/mdx-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function mdxPlugin(options: Options): Promise<Plugin> {
mdxCompileOptions: {
providerImportSource: join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
'/dist/shims/mdx-react-shim.mjs'
),
...mdxPluginOptions?.mdxCompileOptions,
rehypePlugins: [
Expand Down
2 changes: 1 addition & 1 deletion code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function webpack(
mdxCompileOptions: {
providerImportSource: join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
'/dist/shims/mdx-react-shim.mjs'
),
...mdxPluginOptions.mdxCompileOptions,
rehypePlugins: [
Expand Down
2 changes: 1 addition & 1 deletion code/addons/essentials/src/docs/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export * from '@storybook/addon-docs/dist/preset';
export const mdxLoaderOptions = async (config: any) => {
config.mdxCompileOptions.providerImportSource = join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
'/dist/shims/mdx-react-shim.mjs'
);
return config;
};

0 comments on commit 331da20

Please sign in to comment.