@next/mdx 14.1.1-canary.7 → 14.1.1-canary.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +22 -22
- package/package.json +1 -1
- package/readme.md +0 -3
package/index.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { RuleSetConditionAbsolute } from 'webpack'
|
|
1
|
+
import type { NextConfig } from 'next'
|
|
2
|
+
import type { Options } from '@mdx-js/loader'
|
|
3
|
+
import type { RuleSetConditionAbsolute } from 'webpack'
|
|
5
4
|
|
|
6
5
|
type WithMDX = (config: NextConfig) => NextConfig
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
declare namespace nextMDX {
|
|
8
|
+
interface NextMDXOptions {
|
|
9
|
+
/**
|
|
10
|
+
* A webpack rule test to match files to treat as MDX.
|
|
11
|
+
*
|
|
12
|
+
* @default /\.mdx$/
|
|
13
|
+
* @example
|
|
14
|
+
* // Support both .md and .mdx files.
|
|
15
|
+
* /\.mdx?$/
|
|
16
|
+
*/
|
|
17
|
+
extension?: RuleSetConditionAbsolute
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The options to pass to MDX.
|
|
21
|
+
*
|
|
22
|
+
* @see https://mdxjs.com/packages/mdx/#api
|
|
23
|
+
*/
|
|
24
|
+
options?: Options
|
|
25
|
+
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* Use [MDX](https://github.com/mdx-js/mdx) with [Next.js](https://github.com/vercel/next.js)
|
|
29
30
|
*/
|
|
30
|
-
declare function nextMDX(options?: NextMDXOptions): WithMDX
|
|
31
|
+
declare function nextMDX(options?: nextMDX.NextMDXOptions): WithMDX
|
|
31
32
|
|
|
32
33
|
export = nextMDX
|
|
33
|
-
/* eslint=enable */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -137,9 +137,6 @@ const withMDX = require('@next/mdx')({
|
|
|
137
137
|
const nextConfig = {
|
|
138
138
|
// Configure pageExtensions to include md and mdx
|
|
139
139
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
|
140
|
-
experimental: {
|
|
141
|
-
appDir: true,
|
|
142
|
-
}
|
|
143
140
|
// Optionally, add any other Next.js config below
|
|
144
141
|
reactStrictMode: true,
|
|
145
142
|
}
|