@rsbuild/plugin-mdx 0.4.15 → 0.5.0
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/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -45,9 +45,9 @@ var pluginMdx = (options = {}) => ({
|
|
|
45
45
|
setup(api) {
|
|
46
46
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
47
47
|
const { extensions = [".mdx", ".md"] } = options;
|
|
48
|
-
|
|
48
|
+
for (const ext of extensions) {
|
|
49
49
|
chain.resolve.extensions.add(ext);
|
|
50
|
-
}
|
|
50
|
+
}
|
|
51
51
|
const jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS);
|
|
52
52
|
const mdxRule = chain.module.rule("mdx");
|
|
53
53
|
[CHAIN_ID.USE.SWC, CHAIN_ID.USE.BABEL].some((id) => {
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.48.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.48.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
|
|
@@ -26,9 +26,9 @@ var pluginMdx = (options = {}) => ({
|
|
|
26
26
|
setup(api) {
|
|
27
27
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
28
28
|
const { extensions = [".mdx", ".md"] } = options;
|
|
29
|
-
|
|
29
|
+
for (const ext of extensions) {
|
|
30
30
|
chain.resolve.extensions.add(ext);
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
const jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS);
|
|
33
33
|
const mdxRule = chain.module.rule("mdx");
|
|
34
34
|
[CHAIN_ID.USE.SWC, CHAIN_ID.USE.BABEL].some((id) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-mdx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Mdx plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@mdx-js/loader": "^3.0.0",
|
|
27
|
-
"@rsbuild/shared": "0.
|
|
27
|
+
"@rsbuild/shared": "0.5.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "^5.4.2",
|
|
31
|
-
"@rsbuild/core": "0.
|
|
32
|
-
"@scripts/test-helper": "0.
|
|
31
|
+
"@rsbuild/core": "0.5.0",
|
|
32
|
+
"@scripts/test-helper": "0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@rsbuild/core": "^0.
|
|
35
|
+
"@rsbuild/core": "^0.5.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public",
|