@rspress/plugin-preview 2.0.0-beta.28 → 2.0.0-beta.29
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 +0 -6
- package/package.json +5 -7
- package/static/global-styles/entry.css +8 -7
package/dist/index.js
CHANGED
|
@@ -475,12 +475,6 @@ function pluginPreview(options) {
|
|
|
475
475
|
callerName: 'rspress',
|
|
476
476
|
rsbuildConfig
|
|
477
477
|
});
|
|
478
|
-
const { pluginSass } = await import("@rsbuild/plugin-sass");
|
|
479
|
-
const { pluginLess } = await import("@rsbuild/plugin-less");
|
|
480
|
-
rsbuildInstance.addPlugins([
|
|
481
|
-
pluginSass(),
|
|
482
|
-
pluginLess()
|
|
483
|
-
]);
|
|
484
478
|
if ('solid' === framework) rsbuildInstance.addPlugins([
|
|
485
479
|
pluginBabel({
|
|
486
480
|
include: /\.(?:jsx|tsx)$/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-preview",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.29",
|
|
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,21 +23,19 @@
|
|
|
23
23
|
"static"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rsbuild/core": "~1.4.
|
|
26
|
+
"@rsbuild/core": "~1.4.16",
|
|
27
27
|
"@rsbuild/plugin-babel": "~1.0.6",
|
|
28
|
-
"@rsbuild/plugin-less": "~1.4.0",
|
|
29
28
|
"@rsbuild/plugin-react": "~1.3.5",
|
|
30
|
-
"@rsbuild/plugin-sass": "~1.3.5",
|
|
31
29
|
"@rsbuild/plugin-solid": "~1.0.6",
|
|
32
30
|
"lodash": "4.17.21",
|
|
33
31
|
"qrcode.react": "^4.2.0"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|
|
36
|
-
"@rslib/core": "0.12.
|
|
34
|
+
"@rslib/core": "0.12.2",
|
|
37
35
|
"@types/lodash": "^4.17.20",
|
|
38
36
|
"@types/mdast": "^4.0.4",
|
|
39
37
|
"@types/node": "^22.8.1",
|
|
40
|
-
"@types/react": "^19.1.
|
|
38
|
+
"@types/react": "^19.1.11",
|
|
41
39
|
"@types/react-dom": "^19.1.7",
|
|
42
40
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
43
41
|
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
"unist-util-visit": "^5.0.0"
|
|
51
49
|
},
|
|
52
50
|
"peerDependencies": {
|
|
53
|
-
"@rspress/core": "^2.0.0-beta.
|
|
51
|
+
"@rspress/core": "^2.0.0-beta.29",
|
|
54
52
|
"react": ">=18.0.0",
|
|
55
53
|
"react-router-dom": "^6.8.1"
|
|
56
54
|
},
|
|
@@ -15,13 +15,14 @@ body {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/* #region copied from preflight.css */
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
::
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
@layer rp-base {
|
|
19
|
+
*,
|
|
20
|
+
::before,
|
|
21
|
+
::after {
|
|
22
|
+
box-sizing: border-box; /* 1 */
|
|
23
|
+
border-width: 0; /* 2 */
|
|
24
|
+
border-style: solid; /* 2 */
|
|
25
|
+
}
|
|
25
26
|
}
|
|
26
27
|
/* #endregion copied from preflight.css */
|
|
27
28
|
|