@rspress/plugin-preview 2.0.0-rc.7 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -416,7 +416,9 @@ function pluginPreview(options) {
416
416
  entry: await generateEntry_generateEntry(remarkPlugin_globalDemos, framework, customEntry),
417
417
  preEntry: [
418
418
  join(STATIC_DIR, 'iframe', 'entry.css'),
419
- ...builderConfig.source?.preEntry ?? []
419
+ ...[
420
+ builderConfig.source?.preEntry ?? []
421
+ ].flat()
420
422
  ]
421
423
  },
422
424
  html: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-preview",
3
- "version": "2.0.0-rc.7",
3
+ "version": "2.0.0",
4
4
  "description": "A plugin for rspress to preview the code block in markdown/mdx file.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -23,29 +23,29 @@
23
23
  "static"
24
24
  ],
25
25
  "dependencies": {
26
- "@rsbuild/core": "2.0.0-alpha.2",
27
- "@rsbuild/plugin-babel": "~1.0.7",
26
+ "@rsbuild/core": "2.0.0-alpha.4",
27
+ "@rsbuild/plugin-babel": "~1.1.0",
28
28
  "@rsbuild/plugin-react": "~1.4.3",
29
29
  "qrcode.react": "^4.2.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@rslib/core": "0.19.2",
32
+ "@rslib/core": "0.19.3",
33
33
  "@types/mdast": "^4.0.4",
34
34
  "@types/node": "^22.8.1",
35
- "@types/react": "^19.2.8",
35
+ "@types/react": "^19.2.10",
36
36
  "@types/react-dom": "^19.2.3",
37
37
  "mdast-util-mdx-jsx": "^3.2.0",
38
38
  "mdast-util-mdxjs-esm": "^2.0.1",
39
- "react": "^19.2.3",
40
- "react-dom": "^19.2.3",
39
+ "react": "^19.2.4",
40
+ "react-dom": "^19.2.4",
41
41
  "react-router-dom": "^7.12.0",
42
- "rsbuild-plugin-publint": "^0.3.3",
42
+ "rsbuild-plugin-publint": "^0.3.4",
43
43
  "typescript": "^5.8.2",
44
44
  "unified": "^11.0.5",
45
45
  "unist-util-visit": "^5.0.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@rspress/core": "^2.0.0-rc.7",
48
+ "@rspress/core": "^2.0.0",
49
49
  "react": ">=18.0.0",
50
50
  "react-router-dom": "^6.8.1"
51
51
  },