@rspress/core 1.4.0 → 1.5.0

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
@@ -4294,7 +4294,8 @@ async function siteDataVMPlugin(context) {
4294
4294
  return rest;
4295
4295
  }),
4296
4296
  markdown: {
4297
- showLineNumbers: userConfig?.markdown?.showLineNumbers ?? false
4297
+ showLineNumbers: userConfig?.markdown?.showLineNumbers ?? false,
4298
+ defaultWrapCode: userConfig?.markdown?.defaultWrapCode ?? false
4298
4299
  }
4299
4300
  };
4300
4301
  return {
@@ -4390,7 +4391,8 @@ var DEFAULT_LANGUAGES = [
4390
4391
  "diff",
4391
4392
  "yaml",
4392
4393
  ["md", "markdown"],
4393
- ["mdx", "tsx"]
4394
+ ["mdx", "tsx"],
4395
+ "bash"
4394
4396
  ];
4395
4397
  async function prismLanguageVMPlugin(context) {
4396
4398
  const { config } = context;
@@ -4862,8 +4864,7 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
4862
4864
  include: [
4863
4865
  PACKAGE_ROOT,
4864
4866
  path9.join(cwd, "node_modules", RSPRESS_TEMP_DIR2),
4865
- // To compile components/MediumZoom.tsx
4866
- /[\\/]plugin-medium-zoom/
4867
+ /(.*?)\.tsx?$/
4867
4868
  ],
4868
4869
  define: {
4869
4870
  "process.env.__ASSET_PREFIX__": JSON.stringify(assetPrefix),