@@ -789,8 +789,6 @@ Typically, `import` (or `export … from`) do not work here.
789789They can be compiled to dynamic ` import() ` by passing
790790[ ` options.useDynamicImport ` ] [ usedynamicimport ] .
791791
792- > ☢️ ** Danger** : you likely must set ` development: boolean ` .
793-
794792###### ` file `
795793
796794See [ ` compile ` ] [ compile ] .
@@ -814,7 +812,7 @@ exceptions:
814812###### ` options.Fragment `
815813
816814These options are required: ` Fragment ` always, when ` development: true `
817- then ` jsx ` and ` jsxs ` , when ` development: false ` then ` jsxDEV ` .
815+ then ` jsxDEV ` , when ` development: false ` then ` jsx ` and ` jsxs ` .
818816They come from an automatic JSX runtime that you must import yourself.
819817
820818<details >
@@ -823,11 +821,7 @@ They come from an automatic JSX runtime that you must import yourself.
823821``` tsx
824822import * as runtime from ' react/jsx-runtime'
825823
826- const {default : Content} = await evaluate (' # hi' , {
827- development: false ,
828- ... otherOptions ,
829- ... runtime
830- })
824+ const {default : Content} = await evaluate (' # hi' , {... otherOptions , ... runtime })
831825```
832826
833827</details >
@@ -844,7 +838,6 @@ import * as provider from '@mdx-js/react'
844838import * as runtime from ' react/jsx-runtime'
845839
846840const {default : Content} = await evaluate (' # hi' , {
847- development: false ,
848841 ... otherOptions ,
849842 ... provider ,
850843 ... runtime
@@ -868,7 +861,7 @@ Assuming the contents of `example.mdx` from [§ Use][use] was in `file`, then:
868861import * as runtime from ' react/jsx-runtime'
869862import {evaluate } from ' @mdx-js/mdx'
870863
871- console .log (await evaluate (file , { ... runtime , development: false } ))
864+ console .log (await evaluate (file , runtime ))
872865```
873866
874867…yields:
@@ -930,10 +923,7 @@ On the server:
930923``` tsx
931924import {compile } from ' @mdx-js/mdx'
932925
933- const code = String (await compile (' # hi' , {
934- development: false ,
935- outputFormat: ' function-body'
936- }))
926+ const code = String (await compile (' # hi' , {outputFormat: ' function-body' }))
937927// To do: send `code` to the client somehow.
938928```
939929
0 commit comments