@rspress/plugin-playground 2.0.21 → 2.0.22
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/web/index.js +4 -4
- package/package.json +5 -6
- package/static/env.d.ts +0 -2
package/dist/web/index.js
CHANGED
|
@@ -127,13 +127,13 @@ async function loadUmdBabelModule() {
|
|
|
127
127
|
const data = await fetch(__PLAYGROUND_BABEL_URL__);
|
|
128
128
|
const umdSourceCode = await data.text();
|
|
129
129
|
const run = new Function('exports', 'module', 'require', `with(exports, module, require) {${umdSourceCode}}`);
|
|
130
|
-
const
|
|
130
|
+
const __nested_rspack_exports__ = {};
|
|
131
131
|
const module = {
|
|
132
|
-
exports
|
|
132
|
+
exports: __nested_rspack_exports__
|
|
133
133
|
};
|
|
134
134
|
const require = ()=>{};
|
|
135
|
-
run(
|
|
136
|
-
return
|
|
135
|
+
run(__nested_rspack_exports__, module, require);
|
|
136
|
+
return __nested_rspack_exports__;
|
|
137
137
|
}
|
|
138
138
|
let loadBabelPromise = null;
|
|
139
139
|
async function getBabel() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.22",
|
|
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": {
|
|
@@ -37,21 +37,20 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/types": "^7.29.8",
|
|
39
39
|
"@rsbuild/plugin-react": "~2.1.0",
|
|
40
|
-
"@rslib/core": "1.0.0-rc.0",
|
|
41
40
|
"@types/babel__core": "^7.20.5",
|
|
42
41
|
"@types/babel__standalone": "^7.1.9",
|
|
43
42
|
"@types/babel__traverse": "^7.28.0",
|
|
44
43
|
"@types/mdast": "^4.0.4",
|
|
45
44
|
"@types/node": "^22.8.1",
|
|
46
45
|
"@types/react": "^19.2.18",
|
|
47
|
-
"@types/react-dom": "^19.2.
|
|
46
|
+
"@types/react-dom": "^19.2.7",
|
|
48
47
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
49
48
|
"react": "^19.2.8",
|
|
50
49
|
"react-dom": "^19.2.8",
|
|
51
50
|
"rsbuild-plugin-publint": "^1.0.0",
|
|
52
51
|
"typescript": "^6.0.3",
|
|
53
52
|
"unified": "^11.0.5",
|
|
54
|
-
"@rspress/plugin-playground": "2.0.
|
|
53
|
+
"@rspress/plugin-playground": "2.0.22"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
56
|
"@rspress/core": "^2.0.10",
|
|
@@ -66,8 +65,8 @@
|
|
|
66
65
|
"registry": "https://registry.npmjs.org/"
|
|
67
66
|
},
|
|
68
67
|
"scripts": {
|
|
69
|
-
"build": "
|
|
70
|
-
"dev": "
|
|
68
|
+
"build": "rs lib",
|
|
69
|
+
"dev": "rs lib -w",
|
|
71
70
|
"reset": "rimraf ./**/node_modules"
|
|
72
71
|
}
|
|
73
72
|
}
|