@rsbuild/plugin-mdx 0.7.5 → 0.7.7
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.cjs +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
PLUGIN_MDX_NAME: () => PLUGIN_MDX_NAME,
|
|
33
34
|
pluginMdx: () => pluginMdx
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -40,8 +41,9 @@ function createRegExp(exts) {
|
|
|
40
41
|
"i"
|
|
41
42
|
);
|
|
42
43
|
}
|
|
44
|
+
var PLUGIN_MDX_NAME = "rsbuild:mdx";
|
|
43
45
|
var pluginMdx = (options = {}) => ({
|
|
44
|
-
name:
|
|
46
|
+
name: PLUGIN_MDX_NAME,
|
|
45
47
|
setup(api) {
|
|
46
48
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
47
49
|
const { extensions = [".mdx", ".md"] } = options;
|
|
@@ -74,5 +76,6 @@ var pluginMdx = (options = {}) => ({
|
|
|
74
76
|
});
|
|
75
77
|
// Annotate the CommonJS export names for ESM import in node:
|
|
76
78
|
0 && (module.exports = {
|
|
79
|
+
PLUGIN_MDX_NAME,
|
|
77
80
|
pluginMdx
|
|
78
81
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ type PluginMdxOptions = {
|
|
|
12
12
|
*/
|
|
13
13
|
extensions?: string[];
|
|
14
14
|
};
|
|
15
|
+
declare const PLUGIN_MDX_NAME = "rsbuild:mdx";
|
|
15
16
|
declare const pluginMdx: (options?: PluginMdxOptions) => RsbuildPlugin;
|
|
16
17
|
|
|
17
|
-
export { type PluginMdxOptions, pluginMdx };
|
|
18
|
+
export { PLUGIN_MDX_NAME, type PluginMdxOptions, pluginMdx };
|
package/dist/index.js
CHANGED
|
@@ -21,8 +21,9 @@ function createRegExp(exts) {
|
|
|
21
21
|
"i"
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
|
+
var PLUGIN_MDX_NAME = "rsbuild:mdx";
|
|
24
25
|
var pluginMdx = (options = {}) => ({
|
|
25
|
-
name:
|
|
26
|
+
name: PLUGIN_MDX_NAME,
|
|
26
27
|
setup(api) {
|
|
27
28
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
28
29
|
const { extensions = [".mdx", ".md"] } = options;
|
|
@@ -54,5 +55,6 @@ var pluginMdx = (options = {}) => ({
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
export {
|
|
58
|
+
PLUGIN_MDX_NAME,
|
|
57
59
|
pluginMdx
|
|
58
60
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-mdx",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Mdx plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@mdx-js/loader": "^3.0.1",
|
|
27
|
-
"@rsbuild/shared": "0.7.
|
|
27
|
+
"@rsbuild/shared": "0.7.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"typescript": "^5.4.2",
|
|
31
|
-
"@rsbuild/core": "0.7.
|
|
31
|
+
"@rsbuild/core": "0.7.7"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@rsbuild/core": "^0.7.
|
|
34
|
+
"@rsbuild/core": "^0.7.7"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|