@umijs/plugin-docs 4.4.9 → 4.4.10

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/compiler.js CHANGED
@@ -17,10 +17,6 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
20
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
21
  mod
26
22
  ));
@@ -45,13 +41,9 @@ var rehypePrettyCodeOptions = {
45
41
  node.children = [{ type: "text", value: " " }];
46
42
  }
47
43
  },
48
- // 允许高亮代码行
49
- // 对于高亮的代码行,设置为 highlighted 样式表类
50
44
  onVisitHighlightedLine(node) {
51
45
  node.properties.className.push("highlighted");
52
46
  },
53
- // 允许高亮代码文字
54
- // 对于高亮的代码文字,设置为 word 样式表类
55
47
  onVisitHighlightedWord(node) {
56
48
  node.properties.className = ["word"];
57
49
  }
package/dist/index.js CHANGED
@@ -170,3 +170,5 @@ function withTmpPath(opts) {
170
170
  opts.path
171
171
  );
172
172
  }
173
+ // Annotate the CommonJS export names for ESM import in node:
174
+ 0 && (module.exports = {});
package/dist/loader.js CHANGED
@@ -38,3 +38,5 @@ async function loader_default(content) {
38
38
  throw err;
39
39
  }
40
40
  }
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugin-docs",
3
- "version": "4.4.9",
3
+ "version": "4.4.10",
4
4
  "description": "@umijs/plugin-docs",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-docs#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -33,7 +33,7 @@
33
33
  "rehype-slug": "5.0.1",
34
34
  "remark-gfm": "^3.0.1",
35
35
  "tailwindcss": "^3.2.4",
36
- "umi": "4.4.9"
36
+ "umi": "4.4.10"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"