Skip to content

Commit 085a47e

Browse files
fix(mdx): Remove missing config component imports to resolve ReferenceError
1 parent f6c8ade commit 085a47e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/mdx-components.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import Badge from './components/Badge/Badge';
22
import LinkComponent from './components/mdxComponents/Link';
33
import StackBlitzPreview from './components/StackBlitzPreview/StackBlitzPreview';
44
import CodeBlockWithCopy from './components/CodeBlockWithCopy/CodeBlockWithCopy';
5-
import * as ConfigComponents from './components/Configuration/components';
65

76
/** @returns {import('mdx/types.js').MDXComponents} */
87
export function useMDXComponents() {
@@ -11,9 +10,5 @@ export function useMDXComponents() {
1110
Badge: Badge,
1211
StackBlitzPreview: StackBlitzPreview,
1312
pre: CodeBlockWithCopy,
14-
Mode: ConfigComponents.Mode,
15-
Node: ConfigComponents.Node,
16-
W: ConfigComponents.W,
17-
I: ConfigComponents.I,
1813
};
1914
}

src/server.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default (locals) => {
2626
<Site
2727
// note that here we use require instead of import
2828
// i.e., can't reuse App.jsx
29-
import={(path) => require(`./content/${path}`).default}
29+
import={(path) => require(`./content/${path}`)}
3030
/>
3131
</div>
3232
{isPrintPage(locals.path) ? (

0 commit comments

Comments
 (0)