@rspress/plugin-playground 2.0.19 → 2.0.20
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/cli/index.js +3 -1
- package/dist/web/index.js +2 -2
- package/package.json +6 -6
package/dist/cli/index.js
CHANGED
|
@@ -159,7 +159,9 @@ function pluginPlayground(options) {
|
|
|
159
159
|
e.message = `${message}\n${e.message}`;
|
|
160
160
|
throw e;
|
|
161
161
|
}
|
|
162
|
-
throw new Error(`${message}\n${String(e)}
|
|
162
|
+
throw new Error(`${message}\n${String(e)}`, {
|
|
163
|
+
cause: e
|
|
164
|
+
});
|
|
163
165
|
}
|
|
164
166
|
}));
|
|
165
167
|
if (include) include.forEach((item)=>{
|
package/dist/web/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function getLoaderConfig() {
|
|
|
12
12
|
try {
|
|
13
13
|
const keys = Object.keys(__PLAYGROUND_MONACO_LOADER__);
|
|
14
14
|
if (keys.length > 0) loaderConfig = __PLAYGROUND_MONACO_LOADER__;
|
|
15
|
-
} catch
|
|
15
|
+
} catch {}
|
|
16
16
|
return loaderConfig;
|
|
17
17
|
}
|
|
18
18
|
const editor_loaderConfig = getLoaderConfig();
|
|
@@ -21,7 +21,7 @@ loader.config(editor_loaderConfig);
|
|
|
21
21
|
function getMonacoOptions() {
|
|
22
22
|
try {
|
|
23
23
|
return __PLAYGROUND_MONACO_OPTIONS__;
|
|
24
|
-
} catch
|
|
24
|
+
} catch {}
|
|
25
25
|
return {};
|
|
26
26
|
}
|
|
27
27
|
function Editor(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.20",
|
|
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": {
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
"unist-util-visit": "^5.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@babel/types": "^7.29.
|
|
38
|
+
"@babel/types": "^7.29.8",
|
|
39
39
|
"@rsbuild/plugin-react": "~2.1.0",
|
|
40
|
-
"@rslib/core": "1.0.0-
|
|
40
|
+
"@rslib/core": "1.0.0-rc.0",
|
|
41
41
|
"@types/babel__core": "^7.20.5",
|
|
42
42
|
"@types/babel__standalone": "^7.1.9",
|
|
43
43
|
"@types/babel__traverse": "^7.28.0",
|
|
44
44
|
"@types/mdast": "^4.0.4",
|
|
45
45
|
"@types/node": "^22.8.1",
|
|
46
|
-
"@types/react": "^19.2.
|
|
47
|
-
"@types/react-dom": "^19.2.
|
|
46
|
+
"@types/react": "^19.2.18",
|
|
47
|
+
"@types/react-dom": "^19.2.4",
|
|
48
48
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
49
49
|
"react": "^19.2.8",
|
|
50
50
|
"react-dom": "^19.2.8",
|
|
51
51
|
"rsbuild-plugin-publint": "^1.0.0",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"unified": "^11.0.5",
|
|
54
|
-
"@rspress/plugin-playground": "2.0.
|
|
54
|
+
"@rspress/plugin-playground": "2.0.20"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@rspress/core": "^2.0.10",
|