@next/mdx 15.0.0-rc.0 → 15.0.0-rc.1

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.
Files changed (3) hide show
  1. package/index.js +18 -0
  2. package/package.json +1 -1
  3. package/readme.md +1 -3
package/index.js CHANGED
@@ -23,6 +23,24 @@ module.exports =
23
23
  }
24
24
 
25
25
  return Object.assign({}, nextConfig, {
26
+ experimental: Object.assign({}, nextConfig?.experimental, {
27
+ turbo: Object.assign({}, nextConfig?.experimental?.turbo, {
28
+ rules: Object.assign({}, nextConfig?.experimental?.turbo?.rules, {
29
+ '*.mdx': {
30
+ loaders: [loader],
31
+ as: '*.tsx',
32
+ },
33
+ }),
34
+ resolveAlias: Object.assign(
35
+ {},
36
+ nextConfig?.experimental?.turbo?.resolveAlias,
37
+ {
38
+ 'next-mdx-import-source-file':
39
+ '@vercel/turbopack-next/mdx-import-source',
40
+ }
41
+ ),
42
+ }),
43
+ }),
26
44
  webpack(config, options) {
27
45
  config.resolve.alias['next-mdx-import-source-file'] = [
28
46
  'private-next-root-dir/src/mdx-components',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/mdx",
3
- "version": "15.0.0-rc.0",
3
+ "version": "15.0.0-rc.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
package/readme.md CHANGED
@@ -102,7 +102,7 @@ yarn add @next/mdx
102
102
 
103
103
  ## Usage
104
104
 
105
- Create a `mdx-components.js` file at the root of your project with the following contents:
105
+ Create an `mdx-components.js` file at the root of your project with the following contents:
106
106
 
107
107
  ```js
108
108
  // This file is required to use @next/mdx in the `app` directory.
@@ -128,8 +128,6 @@ const withMDX = require('@next/mdx')({
128
128
  // https://github.com/remarkjs/remark-gfm#install
129
129
  remarkPlugins: [],
130
130
  rehypePlugins: [],
131
- // If you use `MDXProvider`, uncomment the following line.
132
- // providerImportSource: "@mdx-js/react",
133
131
  },
134
132
  })
135
133