@rsbuild/plugin-mdx 1.0.3 → 1.1.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.
package/dist/index.cjs CHANGED
@@ -27,8 +27,8 @@ var __webpack_require__ = {};
27
27
  var __webpack_exports__ = {};
28
28
  __webpack_require__.r(__webpack_exports__);
29
29
  __webpack_require__.d(__webpack_exports__, {
30
- PLUGIN_MDX_NAME: ()=>PLUGIN_MDX_NAME,
31
- pluginMdx: ()=>pluginMdx
30
+ pluginMdx: ()=>pluginMdx,
31
+ PLUGIN_MDX_NAME: ()=>PLUGIN_MDX_NAME
32
32
  });
33
33
  const external_node_module_namespaceObject = require("node:module");
34
34
  function createRegExp(exts) {
@@ -64,6 +64,12 @@ const pluginMdx = (options = {})=>({
64
64
  const { REACT_FAST_REFRESH } = CHAIN_ID.PLUGIN;
65
65
  if (chain.plugins.has(REACT_FAST_REFRESH)) chain.plugins.get(REACT_FAST_REFRESH).tap((options)=>{
66
66
  const firstOption = options[0] ?? {};
67
+ if (firstOption.test) firstOption.test = [
68
+ ...Array.isArray(firstOption.test) ? firstOption.test : [
69
+ firstOption.test
70
+ ],
71
+ MDX_REGEXP
72
+ ];
67
73
  firstOption.include = [
68
74
  ...firstOption.include || [],
69
75
  MDX_REGEXP
package/dist/index.js CHANGED
@@ -32,6 +32,12 @@ const pluginMdx = (options = {})=>({
32
32
  const { REACT_FAST_REFRESH } = CHAIN_ID.PLUGIN;
33
33
  if (chain.plugins.has(REACT_FAST_REFRESH)) chain.plugins.get(REACT_FAST_REFRESH).tap((options)=>{
34
34
  const firstOption = options[0] ?? {};
35
+ if (firstOption.test) firstOption.test = [
36
+ ...Array.isArray(firstOption.test) ? firstOption.test : [
37
+ firstOption.test
38
+ ],
39
+ MDX_REGEXP
40
+ ];
35
41
  firstOption.include = [
36
42
  ...firstOption.include || [],
37
43
  MDX_REGEXP
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-mdx",
3
- "version": "1.0.3",
4
- "repository": "https://github.com/rspack-contrib/rsbuild-plugin-mdx",
3
+ "version": "1.1.1",
4
+ "repository": "https://github.com/rstackjs/rsbuild-plugin-mdx",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
@@ -33,36 +33,36 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@mdx-js/loader": "^3.1.0"
36
+ "@mdx-js/loader": "^3.1.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@biomejs/biome": "^1.9.4",
40
- "@playwright/test": "^1.54.1",
41
- "@rsbuild/core": "^1.4.12",
42
- "@rsbuild/plugin-preact": "^1.5.1",
43
- "@rsbuild/plugin-react": "^1.3.4",
44
- "@rsbuild/plugin-svgr": "^1.2.1",
45
- "@rsbuild/plugin-vue": "^1.1.0",
46
- "@rslib/core": "^0.11.0",
47
- "@types/node": "^22.17.0",
48
- "nano-staged": "^0.8.0",
49
- "playwright": "^1.54.1",
50
- "preact": "^10.27.0",
51
- "react": "^19.1.1",
52
- "react-dom": "^19.1.1",
40
+ "@playwright/test": "^1.57.0",
41
+ "@rsbuild/core": "^1.6.10",
42
+ "@rsbuild/plugin-preact": "^1.6.0",
43
+ "@rsbuild/plugin-react": "^1.4.2",
44
+ "@rsbuild/plugin-svgr": "^1.2.2",
45
+ "@rsbuild/plugin-vue": "^1.2.0",
46
+ "@rslib/core": "^0.18.2",
47
+ "@types/node": "^22.19.1",
48
+ "nano-staged": "^0.9.0",
49
+ "playwright": "^1.57.0",
50
+ "preact": "^10.27.2",
51
+ "react": "^19.2.0",
52
+ "react-dom": "^19.2.0",
53
53
  "simple-git-hooks": "^2.13.1",
54
- "typescript": "^5.9.2",
55
- "vue": "^3.5.18"
54
+ "typescript": "^5.9.3",
55
+ "vue": "^3.5.25"
56
56
  },
57
57
  "peerDependencies": {
58
- "@rsbuild/core": "1.x"
58
+ "@rsbuild/core": "^1.0.0 || ^2.0.0-0"
59
59
  },
60
60
  "peerDependenciesMeta": {
61
61
  "@rsbuild/core": {
62
62
  "optional": true
63
63
  }
64
64
  },
65
- "packageManager": "pnpm@10.14.0",
65
+ "packageManager": "pnpm@10.24.0",
66
66
  "publishConfig": {
67
67
  "access": "public",
68
68
  "registry": "https://registry.npmjs.org/"