@rspress/core 1.4.1 → 1.5.1

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;
@@ -4840,8 +4842,6 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
4840
4842
  root: path9.isAbsolute(outDir) ? path9.relative(cwd, outDir) : outDir,
4841
4843
  html: "html"
4842
4844
  },
4843
- // TODO: switch to 'usage' if Rspack supports it
4844
- polyfill: "entry",
4845
4845
  // Disable production source map, it is useless for doc site
4846
4846
  disableSourceMap: isProduction(),
4847
4847
  overrideBrowserslist: browserslist,