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 "
22
33function MyApp ( { Component, pageProps } ) {
44 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 "
22
33function MyApp ( { Component, pageProps } ) {
44 return < Component { ...pageProps } />
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import fs from "fs"
44import path from "path"
55import { bundleMDX } from "mdx-bundler"
66import { getMDXComponent } from "mdx-bundler/client"
7- import { useMemo } from "react"
87
98export async function getStaticProps ( ) {
109 // 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 "
22
33function MyApp ( { Component, pageProps } ) {
44 return < Component { ...pageProps } />
Original file line number Diff line number Diff line change 11import "nextra-theme-docs/style.css"
2- import "@code-hike/mdx/dist/index.css "
2+ import "@code-hike/mdx/styles "
33
44export default function Nextra ( { Component, pageProps } ) {
55 return < Component { ...pageProps } />
Original file line number Diff line number Diff line change 66 Scripts ,
77 ScrollRestoration
88} from "remix" ;
9- import codeHikeStyles from "@code-hike/mdx/dist/index .css" ;
9+ import codeHikeStyles from "@code-hike/mdx/styles .css" ;
1010
1111export function meta ( ) {
1212 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 '
22import Content from './hello.mdx'
33
44function App ( ) {
Original file line number Diff line number Diff line change 1515 },
1616 "./components" : {
1717 "import" : " ./dist/components.esm.js" ,
18- "require" : " ./dist/components.cjs.js"
18+ "require" : " ./dist/components.cjs.js" ,
19+ "default" : " ./dist/components.cjs.js"
1920 },
2021 "./package.json" : " ./package.json" ,
2122 "./styles" : " ./dist/index.css" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function remarkCodeHike(
2626 visit ( tree , "mdxjsEsm" , ( node : EsmNode ) => {
2727 if (
2828 node . value . startsWith (
29- `import { CH } from "@code-hike/mdx" `
29+ `import { CH } from "@code-hike/mdx`
3030 )
3131 ) {
3232 hasCodeHikeImport = true
You can’t perform that action at this time.
0 commit comments