@rspress/plugin-playground 2.0.15 → 2.0.16

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 CHANGED
@@ -159,8 +159,12 @@ function pluginPlayground(options) {
159
159
  }
160
160
  });
161
161
  } catch (e) {
162
- console.error(e);
163
- throw e;
162
+ const message = `[Playground]: Failed to parse ${filepath}.`;
163
+ if (e instanceof Error) {
164
+ e.message = `${message}\n${e.message}`;
165
+ throw e;
166
+ }
167
+ throw new Error(`${message}\n${String(e)}`);
164
168
  }
165
169
  }));
166
170
  if (include) include.forEach((item)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-playground",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
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": {
@@ -51,7 +51,7 @@
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.15"
54
+ "@rspress/plugin-playground": "2.0.16"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@rspress/core": "^2.0.10",