@rspress/plugin-preview 2.0.0-beta.27 → 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 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.27",
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,22 +23,19 @@
23
23
  "static"
24
24
  ],
25
25
  "dependencies": {
26
- "@rsbuild/core": "~1.4.15",
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
- "qrcode.react": "^4.2.0",
34
- "@rspress/theme-default": "2.0.0-beta.27"
31
+ "qrcode.react": "^4.2.0"
35
32
  },
36
33
  "devDependencies": {
37
- "@rslib/core": "0.11.2",
34
+ "@rslib/core": "0.12.2",
38
35
  "@types/lodash": "^4.17.20",
39
36
  "@types/mdast": "^4.0.4",
40
37
  "@types/node": "^22.8.1",
41
- "@types/react": "^19.1.9",
38
+ "@types/react": "^19.1.11",
42
39
  "@types/react-dom": "^19.1.7",
43
40
  "mdast-util-mdx-jsx": "^3.2.0",
44
41
  "mdast-util-mdxjs-esm": "^2.0.1",
@@ -51,7 +48,7 @@
51
48
  "unist-util-visit": "^5.0.0"
52
49
  },
53
50
  "peerDependencies": {
54
- "@rspress/core": "^2.0.0-beta.27",
51
+ "@rspress/core": "^2.0.0-beta.29",
55
52
  "react": ">=18.0.0",
56
53
  "react-router-dom": "^6.8.1"
57
54
  },
@@ -5,7 +5,7 @@ import {
5
5
  withBase,
6
6
  } from '@rspress/core/runtime';
7
7
  import { useCallback, useEffect, useState } from 'react';
8
- // @ts-ignore
8
+ // @ts-expect-error
9
9
  import { normalizeId } from '../../dist/utils';
10
10
  import MobileOperation from './common/mobile-operation';
11
11
  import './Device.css';
@@ -15,13 +15,14 @@ body {
15
15
  }
16
16
 
17
17
  /* #region copied from preflight.css */
18
- *,
19
- ::before,
20
- ::after {
21
- box-sizing: border-box; /* 1 */
22
- border-width: 0; /* 2 */
23
- border-style: solid; /* 2 */
24
- border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */
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