mirror of
https://github.com/zhigang1992/mdx-util.git
synced 2026-04-29 04:34:57 +08:00
@@ -45,7 +45,7 @@ module.exports = async function(source) {
|
||||
|
||||
let code = `
|
||||
import React from 'react'
|
||||
import { MDXTag } from '@mdx-js/tag'
|
||||
import { mdx } from '@mdx-js/react'
|
||||
export const readingTime = ${JSON.stringify(estimatedReadingTime)}
|
||||
${result}
|
||||
`
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
"author": "James K Nelson <james@frontarm.com> (https://frontarm.com/authors/james-k-nelson/)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@mdx-js/mdx": "^0.16.0",
|
||||
"@mdx-js/tag": "^0.16.0",
|
||||
"gray-matter": "^4.0.1",
|
||||
"@mdx-js/mdx": "^1.0.20",
|
||||
"@mdx-js/react": "^1.0.20",
|
||||
"gray-matter": "^4.0.2",
|
||||
"hast-util-to-string": "^1.0.1",
|
||||
"loader-utils": "^1.1.0",
|
||||
"lodash": "^4.17.11",
|
||||
|
||||
Reference in New Issue
Block a user