File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- import "@code-hike/mdx/dist/index.css "
1
+ import "@code-hike/mdx/styles "
2
2
3
3
function MyApp ( { Component, pageProps } ) {
4
4
return < Component { ...pageProps } />
Original file line number Diff line number Diff line change 1
- import "@code-hike/mdx/dist/index.css "
1
+ import "@code-hike/mdx/styles "
2
2
3
3
function MyApp ( { Component, pageProps } ) {
4
4
return < Component { ...pageProps } />
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import fs from "fs"
4
4
import path from "path"
5
5
import { bundleMDX } from "mdx-bundler"
6
6
import { getMDXComponent } from "mdx-bundler/client"
7
- import { useMemo } from "react"
8
7
9
8
export async function getStaticProps ( ) {
10
9
// can be from a local file, database, anywhere
Original file line number Diff line number Diff line change 1
- import "@code-hike/mdx/dist/index.css "
1
+ import "@code-hike/mdx/styles "
2
2
3
3
function MyApp ( { Component, pageProps } ) {
4
4
return < Component { ...pageProps } />
Original file line number Diff line number Diff line change 1
1
import "nextra-theme-docs/style.css"
2
- import "@code-hike/mdx/dist/index.css "
2
+ import "@code-hike/mdx/styles "
3
3
4
4
export default function Nextra ( { Component, pageProps } ) {
5
5
return < Component { ...pageProps } />
Original file line number Diff line number Diff line change 6
6
Scripts ,
7
7
ScrollRestoration
8
8
} from "remix" ;
9
- import codeHikeStyles from "@code-hike/mdx/dist/index .css" ;
9
+ import codeHikeStyles from "@code-hike/mdx/styles .css" ;
10
10
11
11
export function meta ( ) {
12
12
return { title : "New Remix App" } ;
Original file line number Diff line number Diff line change 1
- import '@code-hike/mdx/dist/index.css '
1
+ import '@code-hike/mdx/styles '
2
2
import Content from './hello.mdx'
3
3
4
4
function App ( ) {
Original file line number Diff line number Diff line change 15
15
},
16
16
"./components" : {
17
17
"import" : " ./dist/components.esm.js" ,
18
- "require" : " ./dist/components.cjs.js"
18
+ "require" : " ./dist/components.cjs.js" ,
19
+ "default" : " ./dist/components.cjs.js"
19
20
},
20
21
"./package.json" : " ./package.json" ,
21
22
"./styles" : " ./dist/index.css" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function remarkCodeHike(
26
26
visit ( tree , "mdxjsEsm" , ( node : EsmNode ) => {
27
27
if (
28
28
node . value . startsWith (
29
- `import { CH } from "@code-hike/mdx" `
29
+ `import { CH } from "@code-hike/mdx`
30
30
)
31
31
) {
32
32
hasCodeHikeImport = true
You can’t perform that action at this time.
0 commit comments