@rspress/plugin-preview 1.45.8 → 1.46.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.js +2 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -501,6 +501,7 @@ var __webpack_exports__ = {};
|
|
|
501
501
|
const outDir = (0, external_node_path_namespaceObject.join)(config.outDir ?? 'doc_build', '~demo');
|
|
502
502
|
if (0 === Object.keys(sourceEntry).length) return;
|
|
503
503
|
const { html, source, output, performance } = clientConfig ?? {};
|
|
504
|
+
const { preEntry, ...otherSourceOptions } = source ?? {};
|
|
504
505
|
const rsbuildConfig = (0, core_namespaceObject.mergeRsbuildConfig)({
|
|
505
506
|
dev: {
|
|
506
507
|
progressBar: false
|
|
@@ -516,7 +517,7 @@ var __webpack_exports__ = {};
|
|
|
516
517
|
},
|
|
517
518
|
html,
|
|
518
519
|
source: {
|
|
519
|
-
...
|
|
520
|
+
...otherSourceOptions,
|
|
520
521
|
entry: sourceEntry
|
|
521
522
|
},
|
|
522
523
|
output: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-preview",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1",
|
|
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": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@rsbuild/plugin-solid": "~1.0.5",
|
|
26
26
|
"lodash": "4.17.21",
|
|
27
27
|
"qrcode.react": "^3.2.0",
|
|
28
|
-
"@rspress/shared": "1.
|
|
29
|
-
"@rspress/theme-default": "1.
|
|
28
|
+
"@rspress/shared": "1.46.1",
|
|
29
|
+
"@rspress/theme-default": "1.46.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rslib/core": "~0.6.9",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"unist-util-visit": "^4.1.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@rspress/core": "^1.
|
|
48
|
+
"@rspress/core": "^1.46.1",
|
|
49
49
|
"react": ">=17.0.0",
|
|
50
50
|
"react-router-dom": "^6.8.1"
|
|
51
51
|
},
|