dumi 2.4.10 → 2.4.11

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.
@@ -100,7 +100,7 @@ function emitDemo(opts, ret) {
100
100
  const entryFileName = Object.keys(demo.asset.dependencies)[0];
101
101
  demoDepsMap[_a = demo.id] ?? (demoDepsMap[_a] = {});
102
102
  Object.keys(demo.resolveMap).forEach((key, index) => {
103
- const specifier = `${demo.id.replace(/-/g, "_")}_deps_${index}`;
103
+ const specifier = `${demo.id.replace(/[^\w\d]/g, "_")}_deps_${index}`;
104
104
  if (key !== entryFileName) {
105
105
  const normalizedKey = isRelativePath(key) ? (0, import_plugin_utils.winPath)(demo.resolveMap[key]) : key;
106
106
  if (!shareDepsMap[normalizedKey]) {
@@ -22,9 +22,10 @@ __export(post_raw_exports, {
22
22
  default: () => postRawLoader
23
23
  });
24
24
  module.exports = __toCommonJS(post_raw_exports);
25
+ var import_utils = require("@umijs/utils");
25
26
  function postRawLoader(raw) {
26
27
  return `
27
- import '${this.resourcePath}?watch=parent';
28
+ import '${(0, import_utils.winPath)(this.resourcePath)}?watch=parent';
28
29
  ${raw};
29
30
  `;
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi",
3
- "version": "2.4.10",
3
+ "version": "2.4.11",
4
4
  "description": "📖 Documentation Generator of React Component",
5
5
  "keywords": [
6
6
  "generator",